469,353 Members | 2,121 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,353 developers. It's quick & easy.

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>Importance
<h3>
<input type="radio" name="importance" value="1" />1
<input type="radio" name="importance" value="2" />2
<input type="radio" name="importance" value="3" />3
</h3>
</h2>

Any Help? This is my only error.
Thanks
Mike
Jul 20 '05 #1
2 1726
"Mike" <mi**@nospam.net> wrote:
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>Importance
<h3>


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

Write <h2>Importance</h2> .
Jul 20 '05 #2
Quoth the raven named Mike:
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>Importance
<h3>
<input type="radio" name="importance" value="1" />1
<input type="radio" name="importance" value="2" />2
<input type="radio" name="importance" value="3" />3
</h3>
</h2>


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.
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

24 posts views Thread by Nobody | last post: by
35 posts views Thread by The Bicycling Guitarist | last post: by
16 posts views Thread by Peter Maas | last post: by
16 posts views Thread by Mcginkel | last post: by
82 posts views Thread by Buford Early | last post: by
24 posts views Thread by Dan Jacobson | last post: by
11 posts views Thread by Michael Powe | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.