How to markup postal address in HTML ?
Approach: HTML is a Markup language is used to design web pages. It has so many tags which can be used for different purposes. So, for this, we can use the <address> tag. The <address> tag can be used to add contact information of any type. This tag can be used to store addresses. This tag was introduced in HTML3 and it still exists in HTML5.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.
- Add <address> tag where you want to insert any address.
<address> Address content... </address>
- Now add your address inside <address> tag and also add <br> tag at the end of every row as shown below.
- There are many ways to markup postal addresses in HTML and we have shown the easiest and simplest way to do this.