Dofactory.com
Dofactory.com
Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

HTML <address> Tag

The <address> tag specifies contact information.

This information is about the document's author or owner.

It may have name, address, email, phone, social media, etc.

Example

#

An <address> with the author's contact information.

Contact author: Debbie Anderson, @debbie_anderson
<address>
  Contact author: <a href="mailto:debbie@company.com">Debbie Anderson</a>,
  @debbie_anderson
</address>

Note:  When <address> is placed inside <body> it represents the document's contact info. And when <address> is inside an <article> it represents the article's author info.

More Examples

An <address> tag that displays contact and address information for the document's author.

Author: Debbie Anderson, @debbie_anderson
140 Broadway, Suite 2270
New York, NY 10005
<address>
  Author: <a href="mailto:debbie@company.com">Debbie Anderson</a>,
  @debbie_anderson<br />
  140 Broadway, Suite 2270<br />
  New York, NY 10005<br />
</address>

Code explanation

The <address> tag creates the author's contact information.

The mailto: prefix in href allows users to send an email to the author.


Attributes for <address>

The <address> element has no attributes, but it does accept global attributes. The following are commonly used.

Attribute Value Description
id   value Provides the address element with a unique identifier.
class   classnames Assigns one or more classnames to the address element.
style   CSS-values Assigns CSS style values to the address element.

For additional global attributes see our global attributes list.


Did you know?

Did you know?

Styling an address with CSS

By default, the text in the <address> tag is italic.

With CSS you can customize the text.

An <address> that is styled in non-italic text.

Written by Henry Lopez.
Composition Labs, LLC
105 East Main Street
El Paso, Texas 79905
<address style="font-style:normal;">
  Written by <a href="mailto:hlopez@gmail.com">Henry Lopez</a>.<br /> 
  Composition Labs, LLC<br />
  105 East Main Street<br />
  El Paso, Texas 79905
</address>

For details on the font-style CSS property, see our CSS font-style Reference.


Browser support

Here is when <address> support started for each browser:

Chrome
1.0 Sep 2008
Firefox
1.0 Sep 2002
IE/Edge
1.0 Aug 1995
Opera
1.0 Jan 2006
Safari
1.0 Jan 2003

You may also like


Last updated on Sep 30, 2023

Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

Guides