<div id="header-container">
<address>
<ul>
<li>lorem ipsum</li>
<li>(xxx) xxx-xxxx</li>
</ul>
</address>
</div>
And the CSS looks like this:
#header-container address {float: right; margin-top: 25px;}
When I load the page, it looks fine in Chrome & IE, but in Firefox it's ignoring the styling completely. When I view source in firefox it looks like above, but in Firebug it looks like this:
<div id="header-container">
<address> </address>
<ul>
<li>lorem ipsum</li>
<li>(xxx) xxx-xxxx</li>
</ul>
</div>
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.
Deprecated Attributes Some attributes from HTML4 are no longer allowed in HTML5 at all and they have been removed completely. img and iframe. caption, iframe, img, input, object, legend, table, hr, div, h1, h2, h3, h4, h5, h6, p, col, colgroup, tbody, td, tfoot, th, thead and tr. table, tr, td, th and body.
The <address> HTML element indicates that the enclosed HTML provides contact information for a person or people, or for an organization.
HTML 5 <address> TagIf the tag applies to the body element, then it applies to the document as a whole. The <address> tag must not be used to represent arbitrary addresses (e.g. postal addresses), unless those addresses are contact information for the section. To display postal addresses, simply use the <p> tag.
HTML5 is still a draft. Firefox 3.6 doesn't completely support HTML5 yet.
And according to the HTML4 spec, address
can only contain inline
elements:
<!ELEMENT ADDRESS - - (%inline;)* -- information on author -->
<!ATTLIST ADDRESS
%attrs; -- %coreattrs, %i18n, %events --
>
This is why Firefox considers it invalid and your page breaks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With