Jump to content

Address Tag


jimfog

Recommended Posts

I cannot understand why the address tag is required for address related details(phone etc...)? Why not just use a p tag with the usual br tags to inserts address details? Does the address tag offer something more that the p tag-regarding entering address details in a webpage.

Link to comment
Share on other sites

Well, it is not a must that you use

<address>

tag in your html. You can use <p> if you want to. Some people prefer to use the tag, bcoz:

  • When a vistor view their html source code and they notice the tag, they know whats between it, even without going throught the content.

Link to comment
Share on other sites

Also for other automatic parsers (e.g. search engines, geographically-oriented extensions) that use addresses. You can also style address tags directly in CSS without having to use an (un-semantic) class or ID. The principled reason is, it's an address, so you use the most meaningful tag for it: the <address> tag (just like you use <p> for paragraphs, <table> for tables, etc).

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...