• Post category:HTML

Why we Should use address Instead of p tag in HTML

Use of Address tag in HTML

Some people put the address inside the <p> tag instead of putting it inside the address tag and using the break <br> tag where a line break is required. If you put the address in <p> tag, this will make it difficult for some people to identify this address, and search engine like Google thinks it is a paragraph instead of identifying it as an address. So we need to put the entire address inside the address tag in HTML.

<p>Kamarajar Arangam, <br>
Anna Salai,<br>
Teynampet,<br>
Chennai - 600 006.
</p>

In the above code, we put the address inside a paragraph tag, So, the output will be displayed like the below image:

address tag in html

Example of address tag :

<address>
<p>Kamarajar Arangam, <br>
Anna Salai,<br>
Teynampet,<br>
Chennai - 600 006.
</p>
</address>

Here, we have put the address inside the address tag. See the difference of without <address> tag and with address tag.

Expected Output:

address tag in html

Leave a Reply