Address literally means "address". In html5, it is used for the contact information of the author or owner of a document or article. Note that what is put here is not the literal "address", but "contact information", which can include various contact information such as the name of the document creator, site link, email address, real address, phone number, etc.
address is usually placed in the footer, sometimes also in the header, depending on the situation.
Tag instance 1:
<address> 此文档的作者:<a href="mailto:bill@microsoft.com">Bill Gates</a> </address>
Tag instance 2:
<!DOCTYPE HTML> <html> <body> <address> Written by www.169it.com<br /> <a href="mailto:us@169it.com">Email us</a><br /> Address: Box 564, Disneyland<br /> Phone: +12 34 56 78 </address> </body> </html>
Tag instance 3:
<!doctype html> <title>html5 address 示例 www.169it.com</title> <header><h1>html5 address 示例 www.169it.com</h1></header> <p>这里是主体...</p> <footer> 作者:www.169it.com <address> <ul> <li>网址:http://www.169it.com</li> <li>QQ:10000</li> <li>邮件:web@169it.com</li> </ul> </address> </footer>
The above is the detailed content of How to use tag in html?. For more information, please follow other related articles on the PHP Chinese website!