How to write address in an HTML document ?

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

filter_none

edit
close

play_arrow

link
brightness_4
code

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

chevron_right


Output:

Supported Browsers:

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

full-stack-img




My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.