Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is the "address" HTML tag still used?

I'm not seeing the usage of address tag around. Is it still relevant using address tag these days? Any proposal to deprecate this arise ever?

like image 375
rajakvk Avatar asked Dec 29 '22 13:12

rajakvk


1 Answers

It's still there in the upcoming HTML5 spec:

The address element represents the contact information for its nearest article or body element ancestor. If that is the body element, then the contact information applies to the document as a whole.
...
The address element must not be used to represent arbitrary addresses (e.g. postal addresses), unless those addresses are in fact the relevant contact information. (The p element is the appropriate element for marking up postal addresses in general.)
The address element must not contain information other than contact information.

You're right, it isn't used often, but it should be. I think earlier versions of IE had problems styling it so perhaps that's why it never took off?

like image 134
DisgruntledGoat Avatar answered Feb 07 '23 14:02

DisgruntledGoat