Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML5 <address> tag


May 03, 2021 HTML5


Table of contents


With the HTML5 and address, you can get contact information about the author or owner of a document, please refer to the following example:

Example.com contact information:

<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>
Try it out . . .

Browser support

HTML5 <address> tag HTML5 <address> tag HTML5 <address> tag HTML5 <address> tag HTML5 <address> tag

All major browsers support the hashtag.


Label definition and instructions for use

The label defines the contact information of the author/owner of the document.

If the element is inside the element, it represents the contact information of the author/owner of the document.

If the element is inside the element, it represents the contact information of the author/owner of the article.

The text of the element is usually rendered italic. Most browsers add line changes before and after the element.


Tips and comments

Tip: You should not use the hashtag to describe a postal address unless the information is part of the contact information.

It is used to store address information, and it can be paired with the element to provide contact information for the author of the article. The following points need to be noted for its use:

  • If there are random addresses in the text, you shouldn't use the element, but instead use the ordinary element.

  • The address information should only be stored in the element, not other information that is not related to the address, such as the publication time, and you should put it in the element.

  • A good habit is that we should put the element of the .lt;address. Of course, you don't have to refer to this rule if you don't have the elements.


The difference between HTML 4.01 and HTML5

HTML 4.01 does not support the label, so in HTML 4.01 the label always defines the author/owner's contact information for the document.


Global properties

The label supports the global properties of HTML.


The event property

The tag supports the event properties of HTML.


Read about it

HTML DOM Reference Manual: HTML DOM Body Object