HTML <address> Address Tag
Tags: learnhtml
Published: 2021-02-08 12:48:01

---
title: HTML <address> Address Tag
published: true
date: 2021-02-08 12:10:09 UTC
tags: LearnHTML
canonical_url: https://sharepointanchor.com/learn-html/html-address-tag/
---

The **<address>** tag in [HTML](https://sharepointanchor.com/category/learn-html/ "HTML") is used to **set the contact information** about the owner of the site or the author of the article. For example, if you want to set the address of the company’s website, then you can set it under the address tag.

This tag can contain an **email id** , **phone number** , **address** , **link to the site** , etc. The contact information written between the address tag mostly renders in the **italic** format on the browser.

## Syntax:

The <address>tag always comes in pairs. The contact information is written between the **opening <address> tag** and **closing </address> tag**. Most of the browsers add a line break before the element.

## Sample of the HTML <address> Tag:

### Example 1:

```

<!DOCTYPE html>
<html>
  <head>
    <title>Address Tag</title>
  </head>
  <body>
    <address>
      Author: Share Point Anchor team <br/>
      <a href="mailto:info@sharepointanchor.com">Contact Author</a>
    </address>
  </body>
</html>

```

### Result:

![](https://eadn-wc04-3430828.nxedge.io/cdn/wp-content/uploads/2021/02/Result-3.png)<figcaption>Result</figcaption>

### Example 2:

```

<!DOCTYPE html>
<html>
  <head>
    <title>Address Tag</title>
  </head>
  <body>
    <address>
Written by <a href="mailto:admin@sharepointanchor.com">SPA Admin</a>.<br>
Visit us at:<br>
SharePointAnchor.com<br>
Box 786, Iland<br>
Washington DC
</address>
  </body>
</html>

```

### Result :

![](https://eadn-wc04-3430828.nxedge.io/cdn/wp-content/uploads/2021/02/Address-2.png)<figcaption>Result</figcaption>

## <address> Tag Styling Methods:

The <address> tag supports the **global attributes** and the **event attributes**. You can use the following properties to style an address tag.

### Properties to style the visual weight/emphasis/size of the text in <address> tag:

- **[CSS](https://sharepointanchor.com/category/learn-css/ "CSS") font-style** – This CSS property helps to set the font style of the text such as normal, italic, oblique, initial, inherit.
- **CSS font-family** – This CSS property specifies a prioritized list of one or more font family names or generic family names for the selected element.
- **CSS font-size** – This CSS property will help to set the size of the font.
- **CSS font-weight** – This CSS property used to define whether the font should be bold or thick.
- **CSS text-transform** – This CSS property will control the text case and capitalization.
- **CSS test-decoration** – This CSS property specifies the decoration added to text such as **text-decoration-line** , **text-decoration-color** , **text-decoration- style**.

### Styles to coloring the text in <address> Tag:

- **CSS color** – This CSS property will specify the color of the text content and decorations.
- **CSS background-color** – This CSS property helps to set the background color of an element.

### Text layout styles for <address> Tag:

- **CSS text-indent** – This CSS property is used to specify the indentation of the first line in a text block.
- **CSS text-overflow ** – This CSS property helps to describe how overflowed content that is not displayed should be signaled to the user.
- **CSS white-space** – This CSS property describes how white-space inside an element is handled.
- **CSS word-break**  – This CSS property decides where the lines should be broken.

### Other Properties for <address> Tag:

- **CSS text-shadow**  – This CSS property helps to add the shadow to text.
- **CSS text-align-last**  – This CSS property will set the alignment of the last line of the text.
- **CSS line-height** – This CSS property defines the height of a line.
- **CSS letter-spacing** – This CSS property helps to decide the spaces between letters/characters in a text.
- **CSS word-spacing** – This CSS property specifies the spacing between every word.

## Browser Support:

![](https://eadn-wc04-3430828.nxedge.io/cdn/wp-content/uploads/2021/02/Browser-Support-3.png)<figcaption>Browser Support</figcaption>

The post [HTML <code><address></code> Address Tag](https://sharepointanchor.com/learn-html/html-address-tag/) appeared first on [Share Point Anchor](https://sharepointanchor.com).