PDA

View Full Version : W3C Validation


Fluke667
02-27-2012, 03:29 PM
Added this Template Edits to header of my vBulletin:

https://vborg.vbsupport.ru/showthread.php?t=275895



<if condition="THIS_SCRIPT != 'register'">
<if condition="$show['guest']"><a href="/board/register.php"><div class="forcetoregister"></div></a></if>
</if>



And http://validator.w3.org give me an Error Now:



Error Line 243, Column 59: document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

<a href="/board/register.php"><div class="forcetoregister"></div></a>

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>").




Whats wrong with this?

kh99
02-28-2012, 02:33 AM
I don't know a lot about that stuff, but I think it's like the error message says: you've put a block element (<div>) inside an inline element (<a>), which I guess isn't allowed. Do you need a <div> there? Maybe you can put the <div> outside the <a>.