English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag大全

HTML: <address> Tag

The HTML <address> tag defines the closest contact information of the <article> or <body> in the HTML document. Traditionally, browsers will present the text found in the <address> tag as italic text. This tag is also commonly referred to as the <address> element.

Online Example

w3Contact information of codebox.com:

<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>Basic Tutorial Website(oldtoolbag.com)</title> 
</head>
<body>
<address>
  You can contact us at:<br>
  oldtoolbag.com<br>
  123 Somewhere St.<br>
  City, State
</address>
</body>
</html>
Test to see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

All mainstream browsers support the <address> tag.

Definition and usage instructions of the tag

The <address> tag defines the author of the document/Contact information of the owner.

If the <address> element is inside the <body> element, it indicates the author of the document/Contact information of the owner.

If the <address> element is inside the <article> element, it indicates the author of the article/Contact information of the owner.

The text of the <address> element is usually presented asItalic.Most browsers will add a line break before and after this element.

Tips and Notes

Tip:The <address> element is usually included in <footer> other information of the element.

The HTML <address> element is located within the <body> tag.
<address> tag provides HTML 4.01The contact information closest to the <body>.
<address> tag provides HTML5contact information of the most recent <article> or <body>.
The <address> tag is usually placed in the <footer>, used for <article> or <body>.
Do not place the publication date within the <address> tag, but use the <time> tag instead.
For IE versions earlier than 9IE browsers, please use HTML5shiv, which is a JavaScript solution that can provide support for new HTML5elements provide support, such as: <header>, <main>, <article>, <section>, <aside>, <nav>. <footer>.
Most browsers will present the text within the <address> tag as italic text, but you can use CSS to change this behavior.

HTML 4.01 and HTML5differences between

HTML 4.01 The <article> tag is not supported, so in HTML 4.01 In the document, the <address> tag is always defineddocumentof the author/Contact information of the owner.

Global attributes

Support for <address> tag Global attributes of HTML.

Event attributes

Support for <address> tag HTML event attributes.