Viewing 3 replies - 1 through 3 (of 3 total)
  • <h#> tags are not “allowed” within a label element, hence the error. However, you can switch them:

    <h2><label for="s">Search:</label></h2>

    What ideas do you want? It says quite clear:
    document type does not allow element “h2” here and it even shows the line where do you have it. Edit your sidebar.

    Thread Starter zedlander

    (@zedlander)

    <h#> tags are not “allowed” within a label element, hence the error. However, you can switch them:

    <h2><label for=”s”>Search:</label></h2>
    That’s what I needed, thanks!
    Not sure how it got that way, but it’s fixed now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘XHTML not validating’ is closed to new replies.