Forum Moderators: open
Im getting this error:
Line 67, column 17: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
<p class="white">Blah blah blah blah blah</p>
I don't see the problem with this - but maybe I'm being stupid. Any ideas?
<edited> that didn't come out right..
ebs
p is probably inside of another element, such as a <li> or <ul> element.
Nope - the only thing it is inside is a div - and it's closed up.
By the by, "white" is not really a great structural indicator of the type of paragraph it is. try "story" or "copyright" or "note" or something that better indicates its function. color can change in the future, and you don't want to have to change all your code from class="white" to class='blue".
Good call, thanks. :)
Line 67, column 17: document type does not allow element "P" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag
I'm guessing, but you may find that the problem is just before this line - perhaps an unclosed element like a div, p, ul or whatever.
PS. If there is a mod reading, this thread should be moved to the HTML and Browsers forum ;)
Studying the specs, along with using the W3 validator, will only improve your skills.