Valid to use (anchor tag) without href attribute? [duplicate]

The <a>nchor element is simply an anchor to or from some content. Originally the HTML specification allowed for named anchors (<a name=”foo”>) and linked anchors (<a href=”#foo”>). The named anchor format is less commonly used, as the fragment identifier is now used to specify an [id] attribute (although for backwards compatibility you can still specify … Read more

w3c html validation error – Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections

Either: Add a heading (h1, …, h6) tag to your section element. Replace your section element with a div element. Ignore the warning. The message you’re seeing is a non-normative usage recommendation, as per the HTML5 spec (highlighting mine): The theme of each section should be identified, typically by including a heading (h1–h6 element) as … Read more