Categories
Web development

HTML address tag

The HTML <address> element specifies the contact information for the author of a document /an article.

The contact information can be an email, URL, physical address, phone number, or social media, etc.

Note: The text in the <address> tag usually renders in italic.

Example:

<!DOCTYPE html>
<html>
<head>
<style>
address { 
  display: block;
  font-style: italic;
} 
</style>
</head>
<body>


<address>
Written by <a href="mailto:example@gmail.com">John Smith</a>.<br> 
Visit us at:<br>
example.co.uk<br>
Oxfort Street 123, London<br>
United Kingdom
</address>

</body>
</html>

Output:

Written by John Smith.
Visit us at:
example.co.uk
Oxfort Street 123, London
United Kingdom

Enjoy coding!

Read also:

HTML del tag & ins tag

HTML pre tag

HTML bdo tag