would someone help me with this and why this error is happening please?
thanx, Chris
Line 158, column 31: document type does not allow element "hr" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
you should have a space before your / in the hr tag, but maybe you just aren't supposed to put hr tags into label tags - have you tried using border-top and display:block instead?
In a world without walls and fences - who needs Windows and Gates?! - Unknown Author
"And there's Bill Gates, the...most...famous...man in the...ah...Microsoft." -- A TV commentator for the 2000 Olympics.
Yes but omitting that space will not trip up the validator as it is perfectly valid. There are lots of ways to make a valid XHTML page that doesn't work which is why one ought not to use XHTML, not on the web that is.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Originally posted by Charles Yes but omitting that space will not trip up the validator as it is perfectly valid. There are lots of ways to make a valid XHTML page that doesn't work which is why one ought not to use XHTML, not on the web that is.
Exactly. It won't trip up the validator, but it may trip up some browsers.
Thousand different paths
So many sterile ends
I chose the Devil's path
Never shall the sun kiss my face
And caress me with it's burning light
For I dwell in the shadows
And sleep side by side with death
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
The label element is for labelling form fields, I wouldn't have thought that a horizontal rule would be a very good label. Why do you have it in there in the first place?
Every fight is a food fight when you’re a cannibal.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
There is no HR element on that page. I do see a different error, P elements cannot contain TABLE or other block elements. And I do note that you don't have a very firm grasp of XHTML (see http://www.w3.org/TR/xhtml1/#guidelines). But I wonder, Why are you using XHTML? Of XHTML 1.0 Transitional, XHTML 1.0 Strict, HTML 4.01 Transitional and HTML 4.01 Strict, XHTML 1.0 Transitional will work on the fewest browsers while HTML 4.01 Strict will work on all browsers.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Bookmarks