My site http://www.aapb.co.uk produces an error when validated using this tool
When I remove the shortcode for the WOW slider the problem disappears.
Thanks in advance for your help.
The validator gives the following error:
Validation Output: 1 Error
Error Line 240, Column 4: No p element in scope but a p end tag seen.
It's not a part of WOWSlider code.
When I remove the WOWSlider shortcode I do not get the error. When I put it back in the error returns. Is it something to do with how it interacts with the style?
Slider is a block element based on div.
According to specification (http://www.w3.org/TR/html-markup/p.html#p) "phrasing elements" only should be placed in P tag.
Div is not a "phrasing element", that's why slider should be placed outside the P tag.
But you've inserted slider inside it and this causes the error.
I think I have fixed it by putting the shortcode inside a <div> tag dont understand it fully but I think that the wordpress editor was putting the WowSlider stuff inside the <P> tags automatically.
Thanks - you set me on the right path there.
You must log in to post.