Signup/Sign In

HTML address Tag

HTML <address> tag is used to indicate contact information relevant to the webpage, document, section, or article. We cannot use the address tag in order to identify an address in any other context.

  • When we use the <address> tag inside an <article> tag then it represents the contact information of the owner of the article.

  • On the other hand, if we use <address> tag inside the <body> tag, then it represents the contact information of the document.

  • Contact Information should be context-specific like physical address, URL, e-mail, phone number, etc. which must be relevant to the author, organization, company, etc.

  • The <address> tag must not be used as a styling element for arbitrary postal addresses.

HTML <address>Tag - Syntax and Usage

The <address> tag requires both opening (start) tag and closing(end) tag.

The syntax for the same is given below:

<address>
    CONTACT INFO.
<address>

Points to Remember:

  • The <address> tag helps search engine to locate the contact information easily, as the search engine treats the information inside the <address> tag as the contact information.

  • The <address> tag should not be used to hold any other information other than the contact information, like time of publication of article, or contact form, etc.

  • Typically an <address> tag can be placed inside the <footer> tag of the current section, or of the website.

HTML <address> Tag Basic Example

Below we have a basic example for a clear understanding of the <address> tag:

The HTML <address> tag used in the above example, holds the office address for Studytonight website. This was we can use the <address> tag to hold address in the footer section or the about us section of the website.

Let's take another example:

In the above example, we have used the <address> tag within an <article> element, which acts as contact information for that article.

HTML <address> tag Attributes

This element does not have any specific attributes although this element supports Global attributes and Event attributes.

Default CSS Style for HTML <address> tag

Most of the browsers apply these default CSS style:

address {
    display: block;
    font-style: italic;
}

Browser Support for HTML <address> tag

Following browsers support this attribute:

  • Firefox 1+

  • Google Chrome 1+

  • Internet Explorer 2+

  • Apple Safari 1+

  • Opera 4+



About the author:
Aspiring Software developer working as a content writer. I like computer related subjects like Computer Networks, Operating system, CAO, Database, and I am also learning Python.