xhtml strict

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike

    xhtml strict

    Im getting the following error on the code below "document type does not
    allow element "h3" here; missing one of "object", "ins", "del", "map",
    "button" start-tag "

    <h2>Importanc e
    <h3>
    <input type="radio" name="importanc e" value="1" />1
    <input type="radio" name="importanc e" value="2" />2
    <input type="radio" name="importanc e" value="3" />3
    </h3>
    </h2>

    Any Help? This is my only error.
    Thanks
    Mike


  • Andreas Prilop

    #2
    Re: xhtml strict

    "Mike" <mike@nospam.ne t> wrote:
    [color=blue]
    > Im getting the following error on the code below "document type does not
    > allow element "h3" here; missing one of "object", "ins", "del", "map",
    > "button" start-tag "
    >
    > <h2>Importanc e
    > <h3>[/color]

    .... which shows again that validator.w3.or g's error messages aren't
    really helpful. validator.w3.or g:8001 is no better in this case.

    Write <h2>Importanc e</h2> .

    Comment

    • Beauregard T. Shagnasty

      #3
      Re: xhtml strict

      Quoth the raven named Mike:
      [color=blue]
      > Im getting the following error on the code below "document type does not
      > allow element "h3" here; missing one of "object", "ins", "del", "map",
      > "button" start-tag "
      >
      > <h2>Importanc e
      > <h3>
      > <input type="radio" name="importanc e" value="1" />1
      > <input type="radio" name="importanc e" value="2" />2
      > <input type="radio" name="importanc e" value="3" />3
      > </h3>
      > </h2>[/color]

      Andreas gave you the answer. You can't nest <hx>.

      But why would you want to mark up form elements as headings?

      --
      -bts
      -This space intentionally left blank.

      Comment

      Working...