HTML <address> Tag
<address> tag creates the 'address' element, which represents an address in an HTML document. This address is usually related to authorship of the current HTML document, or a section of the document.
<address> element's nearest ancestor is the
<body> element, then it applies to the document as a whole. If its nearest ancestor is the
<article> element, then it applies to the section.
<address> tag cannot represent arbitrary addresses (e.g. postal addresses) unless those addresses are the contact information for the document/section. Postal addresses should otherwise be placed inside
Note that an
<address> element must not contain the following elements:
<h6> or other
<address> tag is written as
</address> with the address information inserted between the start and end tags.
Email addresses are a common method of address for documents and articles on the web. You can use the address element in this manner.
Postal addresses like this can only be used if this is the actual address for the document/section.
Attributes can be added to an HTML element to provide more information about how the element should appear or behave.
<address> element accepts the following attributes.
The following attributes are standard across all HTML elements. Therefore, you can use these attributes with the
<address> tag , as well as with all other HTML tags.
For a full explanation of these attributes, see HTML 5 global attributes.
Event handler content attributes enable you to invoke a script from within your HTML. The script is invoked when a certain "event" occurs. Each event handler content attribute deals with a different event.
Most event handler content attributes can be used on all HTML elements, but some event handlers have specific rules around when they can be used and which elements they are applicable to.
For more detail, see HTML event handler content attributes.