Connecting Tech Pros Worldwide Help | Site Map

<ul> and xhtml 1.0 problems

Tony Sutton
Guest
 
Posts: n/a
#1: Jul 20 '05
I am having problems with figuring out why XHTML 1.0 Validator is
complaining with this code:

<ul>
<li> text</li>
<li> text</li>
<li> text</li>
<li> text</li>
<li> text</li>
</ul>

Error message is:

document type does not allow element "ul" here; missing one of "object",
"applet", "map", "iframe", "button", "ins", "del" start-tag

<ul>
^

I checked http://www.w3schools.com/tags/tag_ul.asp and it appears to be all
correct... so what am I missing?

Thanks,

--

- Tony Sutton
- http://www.hyperboard.co.uk - The Biggest Message Board!
-------------------------------------------------------------
Chocolate makes the world grow round.
-------------------------------------------------------------



Thor Kottelin
Guest
 
Posts: n/a
#2: Jul 20 '05

re: <ul> and xhtml 1.0 problems




Tony Sutton wrote:[color=blue]
>
> I am having problems with figuring out why XHTML 1.0 Validator is
> complaining with this code:
>
> <ul>
> <li> text</li>
> <li> text</li>
> <li> text</li>
> <li> text</li>
> <li> text</li>
> </ul>
>
> Error message is:
>
> document type does not allow element "ul" here; missing one of "object",
> "applet", "map", "iframe", "button", "ins", "del" start-tag[/color]

Your list is OK. The problem is elsewhere; you are trying to place the list
inappropriately. Check the entire page, or post the URI.

Thor

--
http://thorweb.anta.net/
EightNineThree
Guest
 
Posts: n/a
#3: Jul 20 '05

re: <ul> and xhtml 1.0 problems



"Tony Sutton" <Tony@hypertony.co.ukNOSPAM> wrote in message
news:3f7ef3c8$0$65583$65c69314@mercury.nildram.net ...[color=blue]
> I am having problems with figuring out why XHTML 1.0 Validator is
> complaining with this code:
>
> <ul>
> <li> text</li>
> <li> text</li>
> <li> text</li>
> <li> text</li>
> <li> text</li>
> </ul>
>
> Error message is:
>
> document type does not allow element "ul" here; missing one of "object",
> "applet", "map", "iframe", "button", "ins", "del" start-tag
>
> <ul>
> ^
>[/color]

You've probably nested the UL inside something you're not supposed to.
Post an URL to the offending page


--
Karl Core

At times one remains faithful to a cause only because its opponents do not
cease to be insipid.
Friedrich Nietzsche

eightninethree AT eightninethree.com


Graham J
Guest
 
Posts: n/a
#4: Jul 20 '05

re: <ul> and xhtml 1.0 problems


[color=blue]
> Error message is:
>
> document type does not allow element "ul" here; missing one of "object",
> "applet", "map", "iframe", "button", "ins", "del" start-tag
>
> <ul>
> ^
>
> I checked http://www.w3schools.com/tags/tag_ul.asp and it appears to be[/color]
all[color=blue]
> correct... so what am I missing?[/color]

I think you are looking for the error in the wrong place. It is not
complaining about your <ul>...</ul> per se, but about how it fits in with
the rest of your code. It seems it is often related to nesting block level
elements inside inline ones. Do you, deliberately or by accidental omission
of an earlier end tag, have it inside something like a <span>...</span>for
example (or even <font>...</font>, though that seems less likely if you are
taking the trouble to use xhtml) ?



Tony Sutton
Guest
 
Posts: n/a
#5: Jul 20 '05

re: <ul> and xhtml 1.0 problems


"Graham J" <individual-news-4@orangebucket.co.uk> wrote in message
news:blmta8$e7r0r$1@ID-203032.news.uni-berlin.de...[color=blue]
>
> I think you are looking for the error in the wrong place. It is not
> complaining about your <ul>...</ul> per se, but about how it fits in with
> the rest of your code. It seems it is often related to nesting block[/color]
level[color=blue]
> elements inside inline ones. Do you, deliberately or by accidental[/color]
omission[color=blue]
> of an earlier end tag, have it inside something like a <span>...</span>for
> example (or even <font>...</font>, though that seems less likely if you[/color]
are[color=blue]
> taking the trouble to use xhtml) ?
>[/color]

That's it - thanks for the hints - it was inside the <p> tags.

Wow, it's so fussy... many thanks.

--

- Tony Sutton
- http://www.hyperboard.co.uk - The Biggest Message Board!
-------------------------------------------------------------
I've never made a mistake in my life. I thought I did once, but I was wrong.
-------------------------------------------------------------


Closed Thread


Similar HTML / CSS bytes