I have a simple article that only has a single map.
It doesn't validate properly with W3C validation tool.
Anyone any idea how to fix it?
Sorry I have tried searching the forum but can't find a reference to the problem.
Web page with the problem is:
http://www.dalesweb.com/wcf/location
and the error flagged up in W3C validator is:
Error Line 113, Column 51: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
…dcs-article"><p><div class="phocamaps"><div id="phocamaps-box"><div class="pmb…
✉
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Problem with HTML validation
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Problem with HTML validation
Hi, check your article source (in your editor), maybe the plugin was pasted in p tags by your editor:
<p>{plugin code}</p>
just change it to:
<div>{plugin code}</div>
<p>{plugin code}</p>
just change it to:
<div>{plugin code}</div>
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 07 Nov 2011, 12:15
Re: Problem with HTML validation
Thanks that fixed it.
I am getting really tired of JCE - it seems to screw up so many things being 'helpful'
I am getting really tired of JCE - it seems to screw up so many things being 'helpful'
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact: