Hi I want to have a line break and indent on a couple of menu items. Easy enough <br /> . Problem is I get an error message when validating the page.
Do I have another option? I tried <br /> ang got more errors when validating the page.
Line 67, column 30: document type does not allow element "br" here
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Thanks GigWebGuy This gave me quotes in the menu and this error message when validating. I have also tried "li". It works but I get the same error message with the exception "br" is now "li".
Line 67, column 31: document type does not allow element "br" here
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
It's not your code (obviously). It's simply that the checker does not understand the syntax of the aI statement, which, not being XHTML, gets flagged (in this case because the <br /> is "out of place").