Google +1 Button not W3C compliant

Does anyone know why this happens? Because Google designed it to use tag soup instead of HTML How to make this compliant? The documentation has alternative markup that is valid under the draft HTML 5 specification: <div class=”g-plusone” data-size=”standard” data-count=”true”></div> If you want it to work with HTML 4.x or XHTML 1.x then you might … Read more

Is (not rel=”stylesheet”) allowed to be used in ?

Link is allowed in BODY. I had same problem validating link tag in HTML5 and I solved it with this <link rel=”stylesheet” property=”stylesheet” href=”https://stackoverflow.com/questions/6236097/css/homepage.css”> Need to have both property and rel tag UPDATE 2016 (thanks to yuyokk below): There was a change to HTML5 spec recently that allows having links in the body

Is there a valid way to disable autocomplete in a HTML form?

Here is a good article from the MDC which explains the problems (and solutions) to form autocompletion. Microsoft has published something similar here, as well. To be honest, if this is something important to your users, ‘breaking’ standards in this way seems appropriate. For example, Amazon uses the ‘autocomplete’ attribute quite a bit, and it … 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

No p element in scope but a p end tag seen.w3c validation

That’s because you are nesting a block level element inside the p tag which is invalid. You can only nest inline elements such as span, a and img inside p tag. So your markup is invalid, consider making something like <div class=”inr_content clearfix”> <div class=”col2 first fl”> <p>to provide a drive-in services.</p> </div> <div class=”col2 … Read more

tech