×

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 Youtube

<object> element: It embed the object within the HTML documents and embed plug-ins such as Java applets, PDF readers, Flash Players etc in web pages. Example: <object width="100" height="100" data="bookmark.swf"></object> <embed> element: It defines an embedded...

1 minute read.

HTML <sup> Tag

The HTML sup element is used to describe one or more superscript contents. The sup tag shows a text which is presented above the regular line and half the length...

2 minutes read.

HTML Code

Before jumping into the topic, let’s understand a common scenario where we have a code snippet in our HTML file. By code snippet, we mean computer code, which is written...

5 minutes read.

CSS Clearfix

CSS Clearfix: A clearfix (or clear float) in CSS is for a component to clear or fix the child component, so we don’t need to insert additional markup. The clear...

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.

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.

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.

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.

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

The span tag in HTML is used as an inline container element to mark up a specific or special chunk of a text or a section of a page. If you...

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

HTML Basic Tags

Heading Tags: This tag represents the document header. It is said to be a good practice if every document starts with Heading. Heading tags ranges from H1 to H6 i.e....

3 minutes read.

HTML SVG

HTML SVG: SVG stands for Scalable Vector Graphics which defines the graphics for the web. It is a language for describing 2-D graphics in XML. Each drawn shape in SVG is...

1 minute read.

HTML Reset Button

The HTML reset button is used to reset all values in the form. It clears all input fields. Reset is the value of the type attribute of the button element. The...

6 minutes read.

HTML Text Format

Introduction HTML may format text in two different ways. The HTML tags define a text property to make it appear one way or another. A text element may also be formatted...

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

How to add JavaScript to HTML

JavaScript is one of the most important languages today. It is a high-level, interpreted, lightweight programming language that makes web pages more interactive. It is a language of the web....

5 minutes read.

HTML Canvas

HTML Canvas: Using JavaScript, the < canvas > tag in HTML is used for drawing graphics on web page. It can be used to draw routes, boxes, text, gradient, and...

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 Elements

An HTML element is nothing but a starting tag and then some content and then the closing tag. So we can say HTML elements is everything from the starting tag...

3 minutes read.