Use and role of HTML5 tags

     Got some knowledge about HTML5 in the rookie tutorial, feel useful, you can tidy up later use.

This is a basic HTML5 document:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>文档标题</title>
</head>
<body>
文档内容......
</body>
</html>

Judgment is not HTML5? Enough to see two places ------ < ! DOCTYPE HTML > , < Meta charset = " UTF-8 " > , as long as both correct format, can be determined.

Said the following about the use of HTML5 tags and functions

<! --...--> comment tag is used to insert annotations in the source document. Comments are not displayed in the browser.

< A the href = " http://www.baidu.com " > </ A > <a href=""> </a> This is a hyperlink tag .

<abbr> tag is used to represent an acronym or abbreviations, such as "WWW" or "NATO".

At The < abbr title = " World Health Organization " > WHO </ abbr > WAS Founded in 1948. (When your mouse when hovering on the WHO, it would appear Health Organization World )

< Address > tag

<address>
Written by <a href="mailto:[email protected]">Jon Doe</a>.<br>
Visit us at:<br>
Example.com<br>
Box 564, Disneyland<br>
USA
</address>

Shows the effect usually italicized. If < address > element is located inside the <body> element, it indicates that the contact information of the document author / owner.

If < address > element is located inside the <article> element, it indicates contact information for the article the author / owner.

 

Guess you like

Origin www.cnblogs.com/mmit/p/11237414.html