×

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 <style> tag

The section of information that we want to style is contained in html style tag. It includes CSS, which is used to design the text and images in the web page. Syntax: <head> <title>…………....

3 minutes read.

How to add Google Translate Button on your Webpage?

Google translator is a multi-language translator used for translating the webpage. Google develops it. In today's digital age, it is essential because information is available worldwide in some specific language...

5 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.

HTML5 Formatting

HTML Formatting HTML Formatting is a method of text formatting for a better appearance and look. HTML allows us to format text without using the CSS. HTML includes a lot of formatting tags....

6 minutes read.

Html &lt;datalist >Tag

The autocomplete feature in HTML files is provided by the <datalist> tag. It can be used in conjunction with an input tag to enable users to quickly fill out form...

4 minutes read.

How to append HTML code to a div using JavaScript?

In HTML, we have a div tag which is used to create a box where we can put a lot of other tags. So it works like a container. So,...

4 minutes read.

What does HTML stand for?

HTML stands for Hyper Text Markup Language. We use this markup language to design a web page. Web browsers use this language to showcase text, videos, images, audio and other...

6 minutes read.

HTML Headings

The titles and subtitles of our webpages are known as HTML headings. Let’s not talk about webpages but giving heading to almost everything like normal paragraphs, articles or let it...

2 minutes read.

How to create a link with no underline in HTML

In HTML, an anchor tag (<a>) is a Styled Container tag, which means when a hyperlink is created using this, browsers, by default, display the link by applying some styles...

5 minutes read.

HTML Links

It consist of anchor element which is used to create a link between a source anchor and destination anchor. The anchor tag can be embedded between text, image, video or...

2 minutes read.

HTML <strong> tag

The strong element in HTML is used to display the real significant information in bold so that the user or reader will understand it easily. Syntax: <p> <strong>………… </strong> </p> Example Here, we will demonstrate how to...

2 minutes read.

Most Commonly used Tags in HTML

In this tutorial, we'll look at the most popular HTML tags. We know HTML is a fundamental requirement for creating a website. As a result, it is essential to remember...

9 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 &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 <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 Layouts

HTML Layouts HTML templates provide a way for well-managed, well-structured responsive web pages to be organized. We could say that the HTML layout specifies how web pages can be set up....

4 minutes read.

HTML Paragraphs

In html, there are some elements which starts with new line and one of them is paragraph. Which is said to be a block of text. In html <p> tag...

4 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 <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.