Skip to content
Related Articles

Related Articles

Improve Article

How to write address in an HTML document ?

  • Last Updated : 15 Oct, 2020

The <address> tag in HTML is used to write contact information of a person or an organization. If <address> tag is used inside the <body> tag then it represents the contact information of the document and if the <address> tag is used inside the <article> tag, then it represents the contact information of the article. The text inside the <address> tag will display in italic format. Some browser adding a line break before and after the address element.

Syntax:

<address> Contect Information... </address>

Example:

HTML




<!DOCTYPE html>
<html>
  
<head>
    <title>
        What is the correct way to write
        address in an HTML document?
    </title>
</head>
  
<body>
    <h1 style="color:green;">GeeksforGeeks</h1>
  
    <h3>
        Correct way to write address
        in HTML document
    </h3>
    <!-- address tag starts from here -->
    <address>
        Organization Name: GeeksforGeeks <br>
        Web Site:
            GeeksforGeeks</a><br>
        visit us: GeeksforGeeks<br>
        5th Floor, A-118,
        Sector-136, Noida,
        Uttar Pradesh - 201305
    </address>
    <!-- address tag ends here -->
  
</body>
  
</html>

Output:

Supported Browsers:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.




My Personal Notes arrow_drop_up
Recommended Articles
Page :