HTML tags
2015-06-14 22:59
309 查看
1.<tagname>content</tagname>
eg.<p> and </p>
<html>
<head>
<title>Page title</title>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
2.headings__<h1>...</h1>
totals 6 kinds, <h1>to<h6>
eg.
This is heading 5
This is heading 6
3.paragraphs__<p>...</p>
eg.<p>This
is a paragraph.</p>
4.links__<a>...</a>
eg.<a href="http://www.w3schools.com">This
is a link</a>
P.S. href is a attribute
5.images__<img>...</img>
<img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
P.S. The source
file (src), alternative text (alt), and size (width and height)
are provided as attributes
eg.<p> and </p>
<html>
<head>
<title>Page title</title>
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
Only the <body> area (the white area) is displayed by the browser. |
totals 6 kinds, <h1>to<h6>
eg.
This is heading 1
This is heading 2
This is heading 3
This is heading 4
This is heading 5This is heading 6
3.paragraphs__<p>...</p>
eg.<p>This
is a paragraph.</p>
4.links__<a>...</a>
eg.<a href="http://www.w3schools.com">This
is a link</a>
P.S. href is a attribute
5.images__<img>...</img>
<img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
P.S. The source
file (src), alternative text (alt), and size (width and height)
are provided as attributes