HTML <address> tagS2C Home   « HTML <address> tag

Definition

The <address> tag is used to define contact information text such as address and email.

Example


<address>
  Freddy Fudpucker<br />
  12 Flamingo Way<br />
  Bird Town<br />
  Turkey<br />
  <a href="mailto:kevandjules@server2client.com">Email</a><br />
</address>

Required Attributes

NONE

Optional Attributes

NONE

Common Attributes

class - specifies a classname for the element allowing you to apply the style of the predefined class to the content.


<address class="classname">Some text here</address>

id - specifies a unique id for the element allowing you to apply the style of the predefined id to the content.


<address id="idname">Some text here</address>

style - specifies an inline style for the element allowing you to apply the style to the content.


<address style="color:red;text-align:left">Some text here</address>

title - specifies extra information about the content.


<address title="information about the content">Some text here</address>

Language Attributes

dir - specifies the directional flow of the content.


<!-- The text will flow from left to right -->
<address dir="ltr">Some text here</address>

<!-- The text will flow from right to left -->
<address dir="rtl">Some text here</address>

lang - specifies a language code for the content of the element.


<address lang="en">Some text here</address>

xml:lang - specifies a language code for the content of the element in XHTML documents.


<address xml:lang="fr">Some text here</address>

Document Event Attributes

NONE

Form Event Attributes

NONE

Image Event Attributes

NONE

Keyboard Event Attributes

onkeydown - The JavaScript code to be run when an element is in focus and keyboard key is pressed.


<!-- Executes the go() function -->
<address onkeydown="go()">Some text here</address>

onkeypress - The JavaScript code to be run when an element is in focus and keyboard key is pressed down and released.


<!-- Executes the go() function -->
<address onkeypress="go()">Some text here</address>

onkeyup - The JavaScript code to be run when an element is in focus and keyboard key is released.


<!-- Executes the go() function -->
<address onkeyup="go()">Some text here</address>

Mouse Event Attributes

onclick - The JavaScript code to be run when a mouse is clicked on the element.


<!-- Executes the go() function -->
<address onclick="go()">Some text here</address>

ondblclick - The JavaScript code to be run when a mouse is double clicked on the element.


<!-- Executes the go() function -->
<address ondblclick="go()">Some text here</address>

onmousedown - The JavaScript code to be run when the mouse button is pressed down while the cursor is over the element.


<!-- Executes the go() function -->
<address onmousedown="go()">Some text here</address>

onmousemove - The JavaScript code to be run when the mouse button is moved.


<!-- Executes the go() function -->
<address onmousemove="go()">Some text here</address>

onmouseout - The JavaScript code to be run when the mouse cursor moves off an element.


<!-- Executes the go() function -->
<address onmouseout="go()">Some text here</address>

onmouseover - The JavaScript code to be run when the mouse cursor moves over an element.


<!-- Executes the go() function -->
<address onmouseover="go()">Some text here</address>

onmouseup - The JavaScript code to be run when the mouse button is released while the cursor is over the element.


<!-- Executes the go() function -->
<address onmouseup="go()">Some text here</address>

go to home page Homepage go to top of page Top