HTML <address> Tag

Definition and usage

<address> The tag defines the contact information of the author/owner of the document or article.

If the element is within <address> The element is located in <body> It represents the contact information of the document.

If the element is within <address> The element is located in <article> If the element is within the article, it represents the contact information of the article.

Tip:<address> The element is usually included with other information in The <footer> elementin.

Contact information can be an email address, URL, physical address, phone number, social media account, etc.

<address> Text within an element is usually presented in italics, and browsers always place <address> Add a line break before and after the element.

See also:

HTML DOM reference manual:Address objekt

Eksempel

Contactinformation for Example.com:

<address>
Skrevet af <a href="mailto:webmaster@example.com">Bill Gates</a>.<br>
Besøg os her:<br>
Example.com<br>
Box 564, Disneyland<br>
USA
</address>

Prøv det selv

Globale egenskaber

<address> Tagget understøtter også Globale egenskaber i HTML.

event egenskaber

<address> Tagget understøtter også Event egenskaber i HTML.

Standard CSS-indstillinger

De fleste browsere viser følgende standardværdier <address> Element:

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

Prøv det selv

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support