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

How to Call a JS function using OnClick event [duplicate]

You are attempting to attach an event listener function before the element is loaded. Place fun() inside an onload event listener function. Call f1() within this function, as the onclick attribute will be ignored. function f1() { alert(“f1 called”); //form validation that recalls the page showing with supplied inputs. } window.onload = function() { document.getElementById(“Save”).onclick … Read more

Using sprites with IMG tag?

Using sprites doesn’t necessarily mean you need to define them in css backgrounds. You can also use IMG tag sprites, to do so you need basically trim your image. There are two good articles explaining that technique: http://tjkdesign.com/articles/how-to_use_sprites_with_my_Image_Replacement_technique.asp http://www.artzstudio.com/2010/04/img-sprites-high-contrast/ Both CSS and IMG methods sure have their own benefits, so you need to figure out … Read more

How to find the unclosed div tag [closed]

I made an online tool called Unclosed Tag Finder which will do what you need. Paste in your HTML, and it will give you output like “Closing tag on line 188 does not match open tag on line 62.” Update: The new location of the Unclosed Tag Finder is https://jonaquino.blogspot.com/2013/05/unclosed-tag-finder.html

tech