HTML5 Reference

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:charlie@server2client.com">Email</a><br>
</address>
Freddy Fudpucker
12 Flamingo Way
Bird Town
Turkey
Email

Attributes

The following attributes can be used with the <address> tag.


<address> Specific Attributes
Attribute Value Description Example
There are no required or optional attributes specific to the <address> tag.
<address> Global Attributes
Attribute Description Example
Common
classSpecifies a classname for the element allowing you to apply the style of the predefined class to the content.

<address class="name">Address Text</address>
idSpecifies a unique id for the element allowing you to apply the style of the predefined id to the content.

<address id="name">Address Text</address>
styleSpecifies an inline style for the element allowing you to apply the style to the contentt.

<address style="color:red;">Address Text</address>
titleSpecifies an inline style for the element allowing you to apply the style to the content.

<address title="Content info">Address Text</address>
Keyboard
accesskeySpecifies a keyboard shortcut to associate with the element.

<address accesskey="a">Address Text</address>
tabindexSpecifies a tab order for the element.

<address tabindex="1">Address Text</address>
Language
dirSpecifies the directional flow of the content.

<!-- The text will flow from left to right -->
<address dir="ltr">Address Text</address>
<!-- The text will flow from right to left -->
<address dir="rtl">Address Text</address>
langSpecifies a language code for the content of the element.

<address lang="en">Address Text</address>
spellcheckSpecifies an inline style for the element allowing you to apply the style to the contentt.

<!-- Valid values true and false. -->
<!-- Default inherited / browser specific. -->
<address spellcheck="true">Address Text</address> 
translateSpecifies an inline style for the element allowing you to apply the style to the content.

<!-- Valid values yes and no. -->
<!-- Default yes. -->
<address translate="no">Address Text</address> 
Miscellaneous
contenteditableSpecifies whether the content of the element is editable.

<!-- Valid values true and false. -->
<!-- Default inherited. -->
<address contenteditable="true">Address Text</address> 
draggableSpecifies whether the element is draggable.

<!-- Valid values true and false. -->
<!-- Default browser specific. -->
<address draggable="true">Address Text</address>
hiddenSpecifies whether the element is not yet, or no longer, relevant.

<!-- Valid values an empty string or hidden -->
<address hidden>Address Text</address> 
<address hidden="hidden">Address Text</address> 
<address> Event Attributes
Attribute Description Example
Document Element
oncopyThe script to be run when the user copies the content of an element.

 <!-- Executes go() function -->
<address oncopy="go()">Address Text</address> 
oncutThe script to be run when the user cuts the content of an element.

 <!-- Executes go() function -->
<address oncut="go()">Address Text</address>
onpasteThe script to be run when the user pastes some content into an element.

 <!-- Executes go() function -->
<address onpaste="go()">Address Text</address>
Drag and Drop
ondragThe script to be run when an element is dragged.

 <!-- Executes go() function -->
<address ondrag="go()">Address Text</address>
ondragendThe script to be run when an element has stopped being dragged.

 <!-- Executes go() function -->
<address ondragend="go()">Address Text</address>
ondragenterThe script to be run when an element has been dragged to a valid drop target.

 <!-- Executes go() function -->
<address ondragenter="go()">Address Text</address>
ondragleaveThe script to be run when an element leaves a valid drop target.

 <!-- Executes go() function -->
<address ondragleave="go()">Address Text</address>
ondragoverThe script to be run when an element is being dragged over a valid drop target.

 <!-- Executes go() function -->
<address ondragover="go()">Address Text</address>
ondragstartThe script to be run at the start of a drag operation.

 <!-- Executes go() function -->
<address ondragstart="go()">Address Text</address>
ondropThe script to be run when a dragged element is being dropped.

 <!-- Executes go() function -->
<address ondrop="go()">Address Text</address>
Form
onblurThe script to be run when the element loses focus.

 <!-- Executes go() function -->
<address onblur="go()">Address Text</address>
onchangeThe script to be run when object changed and attempt to leave field.

 <!-- Executes go() function -->
<address onchange="go()">Address Text</address>
oncontextmenuThe script to be run when a context menu is triggered.

 <!-- Executes go() function -->
<address oncontextmenu="go()">Address Text</address>
onfocusThe script to be run when the element gets focus.

 <!-- Executes go() function -->
<address onfocus="go()">Address Text</address>
oninputThe script to be run when an element gets user input.

 <!-- Executes go() function -->
<address oninput="go()">Address Text</address>
oninvalidThe script to be run when an element is invalid.

 <!-- Executes go() function -->
<address oninvalid="go()">Address Text</address>
onresetThe script to be run when a dragged element is being dropped.

 <!-- Executes go() function -->
<address onreset="go()">Address Text</address>
onselectThe script to be run when some or all of the contents of an object are selected.

 <!-- Executes go() function -->
<address onselect="go()">Address Text</address>
onsubmitThe script to be run when a form is submitted.

 <!-- Executes go() function -->
<address onsubmit="go()">Address Text</address>
Keyboard
onkeydownThe script to be run when an element is in focus and keyboard key is pressed down.

 <!-- Executes go() function -->
<address onkeydown="go()">Address Text</address>
onkeypressThe script to be run when an element is in focus and keyboard key is pressed down and released.

 <!-- Executes go() function -->
<address onkeypress="go()">Address Text</address>
onkeyupThe script to be run when an element is in focus and keyboard key is released.

 <!-- Executes go() function -->
<address onkeyup="go()">Address Text</address>
Media
onabortThe script code to be run on abort.

 <!-- Executes go() function -->
<address onabort="go()">Address Text</address>
oncanplayThe script to be run when a file has buffered enough so it is ready to start playing.

 <!-- Executes go() function -->
<address oncanplay="go()">Address Text</address>
oncanplaythroughThe script to be run when a file can be played all the way to the end without further need of buffering.

 <!-- Executes go() function -->
<address oncanplaythrough="go()">Address Text</address>
oncuechangeThe script to be run when the cue changes when using the track element.

 <!-- Executes go() function -->
<address oncuechange="go()">Address Text</address>
ondurationchangeThe script to be run when the length of the media is changed.

 <!-- Executes go() function -->
<address ondurationchange="go()">Address Text</address>
onemptiedThe script to be run when a media resource element suddenly becomes empty, usually due to an error.

 <!-- Executes go() function -->
<address onemptied="go()">Address Text</address>
onendedThe script to be run when the media has reach the end.

 <!-- Executes go() function -->
<address onended="go()">Address Text</address>
onloadeddataThe script to be run when media data is loaded and playback can start.

 <!-- Executes go() function -->
<address onloadeddata="go()">Address Text</address>
onloadedmetadataThe script to be run when metadata has been loaded.

 <!-- Executes go() function -->
<address onloadedmetadata="go()">Address Text</address>
onloadstartThe script to be run whenthe media resource has started loading.

 <!-- Executes go() function -->
<address onloadstart="go()">Address Text</address>
onpauseThe script to be run when the media resource has been paused.

 <!-- Executes go() function -->
<address onpause="go()">Address Text</address>
onplayThe script to be run when the media resource starts playback.

 <!-- Executes go() function -->
<address onplay="go()">Address Text</address>
onplayingThe script to be run when when playback has already begun.

 <!-- Executes go() function -->
<address onplaying="go()">Address Text</address>
onprogressThe script to be run when the browser is fetching the media data.

 <!-- Executes go() function -->
<address onprogress="go()">Address Text</address>
onratechangeThe script to be run when the playback rate changes.

 <!-- Executes go() function -->
<address onratechange="go()">Address Text</address>
onseekedThe script to be run when the seeking attribute is set to false indicating that seeking has finished.

 <!-- Executes go() function -->
<address onseeked="go()">Address Text</address>
onseekingThe script to be run when the seeking attribute is set to true indicating that seeking is currently active.

 <!-- Executes go() function -->
<address onseeking="go()">Address Text</address>
onstalledThe script to be run when the browser is unable to continue fetching media data.

 <!-- Executes go() function -->
<address onstalled="go()">Address Text</address>
onsuspendThe script to be run when media data has stopped before being completely loaded.

 <!-- Executes go() function -->
<address onsuspend="go()">Address Text</address>
ontimeupdateThe script to be run when the media resources current playback position has changed.

 <!-- Executes go() function -->
<address ontimeupdate="go()">Address Text</address>
onvolumechangeThe script to be run when the volume has changed or been muted.

 <!-- Executes go() function -->
<address onvolumechange="go()">Address Text</address>
onwaitingThe script to be run when the media resource has paused but is expected to resume.

 <!-- Executes go() function -->
<address onwaiting="go()">Address Text</address>
Mouse
onclickThe script to be run when when a mouse is clicked on an element.

 <!-- Executes go() function -->
<address onclick="go()">Address Text</address>
ondblclickThe script to be run when a mouse is double clicked on an element.

 <!-- Executes go() function -->
<address ondblclick="go()">Address Text</address>
onmousedownThe script to be run when he mouse button is pressed down while the cursor is over an element.

 <!-- Executes go() function -->
<address onmousedown="go()">Address Text</address>
onmousemoveThe script to be run when the mouse button is moved.

 <!-- Executes go() function -->
<address onmousemove="go()">Address Text</address>
onmouseoutThe script to be run when the mouse cursor moves off an element.

 <!-- Executes go() function -->
<address onmouseout="go()">Address Text</address>
onmouseoverThe script to be run when the mouse cursor moves over an element.

 <!-- Executes go() function -->
<address onmouseover="go()">Address Text</address>
onmouseupThe script to be run when the mouse button is released while the cursor is over the element.

 <!-- Executes go() function -->
<address onmouseup="go()">Address Text</address>
onwheelThe script to be run when the mouse wheel rolls up or down over an element.

 <!-- Executes go() function -->
<address onwheel="go()">Address Text</address>
Scroll
onscrollThe script code to be run when the scrollbar of an element is being scrolled.

 <!-- Executes go() function -->
<address onscroll="go()">Address Text</address> 
Window - NONE

Relevant HTML Tutorials

HTML Basics - Formatting