How to write address in an HTML document ?
Last Updated :
04 Jan, 2022
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> Contact 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 >
Organization Name: GeeksforGeeks < br >
Web Site:
GeeksforGeeks</ a >< br >
visit us: GeeksforGeeks< br >
5th Floor, A-118,
Sector-136, Noida,
Uttar Pradesh - 201305
</ address >
</ body >
</ html >
|
Output:
Supported Browsers:
- Google Chrome
- Internet Explorer
- Firefox
- Opera
- Safari
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...