By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,622 Members | 1,154 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,622 IT Pros & Developers. It's quick & easy.

xhtml strict

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
"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

P: n/a
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.