Introduction to HTML address Tag



The HTML <address> tag is used to define the author's contact information or owner of a document. The <address> tag was added to HTML3. This tag is available in all versions of HTML3 onwards. It is also included in HTML5.


Many times web developers get confused about the use of the <address> tag. The <address> tag should be used to provide contact information related to the author of the document, such as the author's email, mailing address, social media links, etc.


The <address> tag should not be used to provide contact information for the entire website. For this, you should use the <footer> tag. The <address> tag should not be used to provide the postal address of an organization.


If many authors publish on your website, then you can attach the address tag with all the authors' articles and provide their contact information.


<address> tag is very useful for readers. Readers can easily contact the author of that article with the information provided by the <address> tag.


However, contact information of the author can also be provided from <p> or <span> tag. But from the SEO point of view, it is important to use the <address> tag. Search engines use the <address> tag for author ranking.


If a person searches about that author, then the search engines can show this information by knowledge graph.


The information provided by the HTML <address> tag is shown in italic style in the web page.


Syntax of HTML <address> Tag

<address>

//author email address

//author mailing address

//author social media profile links

</address>


As you can see in the syntax above, the <address> tag needs to be properly closed by the closing tag. In the <address> tag, you can easily use the <span> <p> and <a> tags.


HTML <address> has no element-specific attribute. This tag supports all global and event attributes of HTML.