您的位置:首页 > Web前端 > HTML

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>

Only the <body> area (the white area) is displayed by the browser.
2.headings__<h1>...</h1>

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 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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: