forked from techbow/LAWeb4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HTML elements and attributes.html
53 lines (23 loc) · 1.64 KB
/
HTML elements and attributes.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="en-US"> <!--en:specify the language. US: dialect-->
<body>
<h1>My First Heading</h1>
<p title="About W3Schools">W3Schools is a web developer's site.It provides tutorials and references coveringmany aspects of web programming,including HTML, CSS, JavaScript, XML, SQL, PHP, ASP, etc.</p>
<!--the <p> element has a title attribute-->
<!--When you move the mouse over the element, the title will be displayed as a tooltip.-->
<a href="http://www.w3school.com">This is a link.</a>
<!--tag a 还可以用来打电话,发邮件,打开app和跳转到本文件夹上层的功能和定位(当文章太长一页纸显示不下的事后)-->
<a href="tel:+18062529523">Call Yunyi</a><br>
<a href="mailto:[email protected][email protected]&subject=哈哈&body=吃饭饭">Email Yunyi</a><br>
<a href="facetime:yunyiliu">facetime Yunyi Liu</a><br>
<!--The alt attribute specifies an alternative text to be used, when an HTML element cannot be displayed.-->
<img src="w3school.jpg" alt="W3School.com" width="104" height="142">
<meta charset='UTF-8'>
<!--the meta data should in the head, but it is also works when it used in the body-->
</body>
</html>
<!--The value of the attribute can be read by "screen readers". This way, someone "listening" to the webpage, i.e. a blind person, can "hear" the element.
-->
<!--HTML elements are witten with a start tag, with an end tag, with the conten in the between-->
<!--The document language can be declared in the <html> tag.-->
<!--属性直接跟在tag后面,用一个空格隔开(本段文字的显示需要加meta charset='UTF-8'来实现-->