×

HTML <address> Tag

Hyper Text Markup Language, HTML is the best markup language for creating Web pages. HTML consists of a wide variety of elements. In all of these elements, one element is most important for providing websites Author Information, which is the address tag.

The contents of an <address> element can contain any type of contact information that is required, such as geographical coordinates, a physical address, a URL, an email address, a phone number, and so on the form that the contact information takes depends on the context. The name of the individual(s) or group(s) to whom the contact information pertains should be included in the <address> element.

The term "address" has many applications, including displaying a company's contact information in the page header and identifying the right author of an article by including an "address" element in the "article" tag.

The contact information written between <address> tags mostly render in the italic form on the browser.

Syntax of <Address> tag in HTML

<address><h3For More Details<h3>
<a href = "https://www.tutorialandexample.com">Know More About Html </a>
</address>

Example of <Address> tag in HTML

<!DOCTYPE html>
<html>
<body>
<h1>The address element</h1>


<address>
Written by <a href="mailto:hackmaster@example.com">John Doe</a>.<br> 
Visit us at:<br>
Example.com<br>
Box 564, Los Angeles<br>
USA
</address>


</body>  

Output

Html <address> Tag

The <address> tag must be contained inside the <article> element if you want to specify an article's author's information.

The majority of browsers add a line break before and after the element, and the data in the tag is displayed in italics.

Styling Of Address Tag

  • You can use some of this attribute to style the address tag.
  • CSS Font Style: The CSS font-style attribute controls the font style. initial; standard; italic; oblique; inherit
  • CSS Font Family: For the selected element, it specifies a prioritized list of one or more general family names and/or font family names.
  • Font size is controlled via the CSS attribute.
  • The CSS Typeface Weight property of a font controls whether it should be thick or bold.
  • Text decoration is described by the CSS property text-decoration, which is short for text-decoration-line, text-decoration-color, and text-decoration-style.

Important Points in Address Tag

  • If there is a footer for the current section, it is formalized to place an <address> element there.
  • Previously, an <address> element could only be used to indicate the author of the document's contact information. However, in the latest versions definition has been improved because it can now also be used to markup arbitrary addresses.
  • Publication date or other information instead of contact information should not be included in an address element (instead, use the <time> tag).
  • The only type of content that may be used in an address tag is flow content, which implies that an address tag cannot be used as a parent of another address element or as a child of another address element
  • Most browsers will change in italic the text inside the <address> tag, but CSS styling allows you to change this behavior.
  • Except when those addresses contain the section's contact details, the address tag may not be used to indicate arbitrary addresses (such as postal addresses). You only need to use the <p> tag to display postal addresses.
  • <article>, <aside>, <nav>, <section>, <header>, <footer>, <hgroup, h1-h6 and other address> components are not permitted in the <address> tag.
  • Use HTML5, a JavaScript workaround, to enable the new HTML5 elements like <main>, <header>, <article>, <section>, <nav>, <aside>, and <footer> in Internet Explorer browsers older than IE 9.

Attributes

The <address> tag does not currently have a specific attribute that should be used with it.

1. Global Attribute

The HTML5 <address> tag supports all the attributes similarly to all other existing HTML tags.

2. Event Attribute

The address tag in HTML 5 supports all the event attributes.

Browser Compatibility

  • Chrome
  • Safari
  • Opera
  • Firefox

Conclusion

Address tag helps to provide authors information on who designs any website or blog. In the form of Link URL, email information, address, etc. It is very useful in emergencies and helps from the website author. It shows in italic form and you can give your styling by CSS. This tag is embedded in the article tag.


Related Topics

HTML Background Image

Inserting image in HTML An image (technically digital image) in HTML or even in general technical aspects, is a binary representation of visual information. By visual information we mean, in the...

8 minutes read.

HTML <video> Tag

The Video tag in HTML is used to play video on a media player on the web page. We can also insert an audio by the video tag, but audio...

6 minutes read.

Div Tag in HTML

In HTML, ‘div’ is a tag that specifies division or section in HTML document. But before going in detail of it, let’s first understand about tags in HTML. The tag...

8 minutes read.

HTML Tutorial

Introduction This HTML tutorial helps beginners and professionals to learn HTML easily. HTML is a widely used web technology for website development. It stands for Hyper Text Markup Language. It is mainly used to...

7 minutes read.

Html &lt;Col> Tag

You can write the col tag inside the table tag after the thead, tbody, foot, and tr tags. You can also apply it after the caption tag (in which the...

4 minutes read.

Html Wbr Tag

The Line Break Opportunity element A word break opportunity is a place in text from where the browser breaks a line. This opportunity is represented by the element wbr in the...

2 minutes read.

Responsive HTML5 and CSS3 Tutorial

Introduction to HTML5 Tutorial HTML5 is the latest and upgraded version of HTML. HTML is a hypertext markup language. Technically, it is not a programming language. It is a markup language. HTML...

17 minutes read.

HTML Id Attribute

The HTML id attribute represents the unique identifier for an element of the HTML document. Each element has its unique identifier. The id attribute is a global attribute that can be...

12 minutes read.

HTML Anchor

HTML Anchor The HTML anchor tags define a hyperlink that links to other pages on one page. It can create hyperlinks to any web page and files, locations or any other...

3 minutes read.

HTML Lists

HTML List HTML lists are used to specify data sets. All lists can include one or more elements from the list. HTML lists are available in three different types: Ordered List or...

4 minutes read.

HTML City tag

HTML <City> tag HTML < cite > tag specifies a citation, a reference or title to a creative work, quoted content, books, websites, a research paper, a blog post, a painting,...

3 minutes read.

HTML References

BASIC HTML TAGS TAGS DESCRIPTION <!DOCTYPE> Defines Document Type <html> Defines Html document <head> Defines Header of document <title> Defines Title of document <body> Describe all the content of document <h1> to <h6> Defines Html Heading <p> Write Paragraph in this tag <br> Line break <!--...--> Comment in Html FORMATTING TAGS TAGS DESCRIPTION <abbr> Defines...

3 minutes read.

HTML <summary> tag

When we simply want to show the primary heading or topic name of hidden detailed material to users, then we can achieved this by using the summary tag. This makes it...

2 minutes read.

HTML5 Button Tag

HTML Button Tag The < button > tag is used on the webpage to construct a clickable button inside the HTML. Within the < button>....</button > tag, we can place content...

2 minutes read.

HTML Form Input Types

HTML Form Input Types An important element of the HTML form is < input type= "> in HTML. The type attribute of the input element can be of different types, which...

8 minutes read.

How to change text color in HTML

Changing the text colour of a web page is essential because it enhances readability. There are several ways to change the colour of the text in HTML, which are as follows: Text...

7 minutes read.

HTML Attributes

HTML Attributes provide the additional information about HTML elements. Attributes are always specified in the start tag. Attributes usually comes in pairs. lang Attribute This attribute helps in declaring the language...

2 minutes read.

HTML <script> Tag

For embedding a client -side script, we use script tag in html tag. This <script> tag can be used for containing scripting statements. It can also point another external script file...

2 minutes read.

HTML <table> tag

The Table element If we want to show the data and information in a two-dimensional table with rows and columns, then we can achieve this by using the HTML element <table>. Syntax: <body> <table> <thead> <tr> <thcolspan="#">………….</th> </tr> </thead> <tbody> <tr> <td>……….</td> <td>……….</td> </tr> </tbody> </table> </body> Example: <!DOCTYPE...

9 minutes read.

HTML Hide Element

The HTML hide element is used to hide the element. We place the hidden attribute inside those elements which we want to hide. The hidden attribute is a Boolean attribute. The...

3 minutes read.