w3c validation - document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag -
i getting w3c validation error here
mentioned element not allowed appear in context in you've placed it; other mentioned elements ones both allowed there , can contain element mentioned. might mean need containing element, or possibly you've forgotten close previous element. 1 possible cause message have attempted put block-level element (such "<p>" or "<table>") inside inline element (such "<a>", "<span>", or "<font>").
this source code
<ul class="link"> <li><a href="" class="selected"><span>1<div class="clr"> </div><label>vul postcode in </label></span></a></li> <li><a href=""><span>2<div class="clr"> </div><label>restaurants </label></span></a></li> <li><a href=""><span>3<div class="clr"> </div><label>menukaart</label></span></a></li> <li><a href=""><span>4<div class="clr"> </div><label>afrekenen</label></span></a></li> </ul>
please me find out issue,
thanks
pallavi
you have block element (div
) inside of inline element (span
). not allowed.
solution 1: change
span
div
:<a href=""><div>2<div class="clr"> </div><span class="label">restaurants </span></div></a>
(you have use html5 (
<!doctype html>
), otherwise block elements wouldn’t allowed inside ofa
elements.)solution 2: change
div
span
:<a href=""><span>2<span class="clr"> </span><span class="label">restaurants </span></span></a>
note can’t have label
inside of a
element (i changed label
span
here). use label
element when have form
.
Comments
Post a Comment