HTML Tags – Address Tag


What is an <address> Address Tag in HTML ?

HTML <address> element indicates the contact information of a person or an organisation.

<address> tag is used inside the <body> tag specifies the contact information.

<address> tag is also used in <footer> section to display the address of website and contact information.

The contact information can be anything like email address, URL, physical address, phone number, social media handle, etc.

Address tag always starts with opening <address> and closing </address> tag.

Why <address> Address Tag is used ?

Its used inside the webpage to display the contact information of a person or an organisation.

Its also used to display the contact information of the author/owner of a document or an article.


How <address> tag displays the address?

Whatever text is defined inside <address> tag the browser displays the text in italic font style.

And <address> tag adds a line break before and after the <address> element.

HTML coding for a website !!!

Click to Learn More about – HTML Tutorial for beginners

Syntax :

<address>
Address Information, contact details:
</address>

Example :

<html>
        <head>
                <title>My Webpage</title>
        </head>
        <body>
                <p><address>Block Number , House number</address>
                <address>ApartmentName,</address>
                <address>Street Name.</address>
                <address>Location.</address></p>
        </body>
</html>

Output :


Global Attributes

<address> tag supports global attributes listed below,

SnoAttributesValueDescription
1idunique_nameDeclared unique id for an element.
2classclass_nameDeclared one or more classnames for an element.
3stylestylesCSS inline styles specify an element.
4titletitleSpecify extra details of element contain, this will display as a “tooltip” for an elements.

Event Attributes

<address> tag supports Event attributes listed below,

SnoAttributesValueDescription
1onfocusscriptelement gets focus on object when script tobe run.
2onblurscriptelement lose the focus on object when scrip tobe run.
3onclickscriptclicked on object when script tobe run.
4ondblclickscriptdouble click on object when script tobe run.
5onkeydownscriptkey is pressed when script tobe run.
6onkeypressscriptkey is pressed over element then released when script tobe run.
7onkeyupscriptkey is released over element when script tobe run.
8onmousedownscriptmouse button was pressed over an element when script tobe run.
9onmouseoutscriptmouse pointer release over an element when script tobe run.
10onmousemovescriptrun mouse pointer moved when script tobe run.
11onmouseoverscriptrun mouse pointer move over when script tobe run.
12onmouseupscriptmouse button is released when script tobe run.

Browser Compatibility

SnoBrowserSupport
1ChromeYes
2FirefoxYes
3EdgeYes
4OperaYes
5SafariYes
6Internet ExplorerYes