w3resource

HTML address tag and element

1. HTML address element represents contact information in an HTML document.

2. It may contain hyperlinks to the URL, where some contact information relevant to the page is located.

3. Browsers display the contact information within address element in italics.

Syntax

<address>contact information</address> 

Category

HTML address element is part of the global structure of an HTML page. This is a block level element.

Whether both start and end tags are required

Both start and end tags are required.

Can contain

HTML address element can contain inline elements.

Can reside within

HTML address element can reside within APPLET, BLOCKQUOTE, BODY, BUTTON, CENTER, DD, DEL, DIV, FIELDSET, FORM, IFRAME, INS, LI, MAP, NOFRAMES, NOSCRIPT, OBJECT, TD, TH.

DOCTYPE support

HTML 4.01 Strict, HTML 4.01 Transitional, HTML 4.01 Frameset.

Attributes

Attributes specific to this element

None.

Identifiers

id and class.

language information and text direction

lang, dir.

Title

title.

Style

style.

Events

onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

Example of using HTML address element

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>html headings example</title>
</head>
<body>
<address>Friends Park. St. Xaviers Road. Kanainatshal, Sripally.</address> 
</body>
</html>

Result

html address tag and element

View this example in a separate browser window

HTML address example.

Pictorial presentation

html-address

Previous: HTML headings
Next: HTML Text