MASSMEDIUMS - Responsive Web Design Cincinnati MASSMEDIUMS - Responsive Web Design Cincinnati

HTML5: ID for anchors, name attribute obsolete

When attempting to validate pages with the W3C validator, you may notice that using the 'name' attribute is no longer valid. That's because the 'name' attribute is not supported in HTML5 and is considered obsolete. For valid markup, a newer construct is recommended: use the 'id' attribute instead. See the example below for the correct markup:

<!-- Incorrect Markup - 'name' attribute -->
<ul>
    <li><a href="#one">Section One</a></li>
</ul>

<h2><a name="one">Section One</a></h2>
<!-- Correct Markup - 'id' attribute -->
<ul>
    <li><a href="#one">Section One</a></li>
</ul>

<h2><a id="one">Section One</a></h2>
Ready to get started? Let us take your website to the next level. LET'S TALK
MASSMEDIUMS has been essential in the growth of our company, delivering high-impact marketing tools and a first-rate web presence

, VP, Ziegler Practice Transitions