473,396 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

<ul> and xhtml 1.0 problems

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.
-------------------------------------------------------------

Jul 20 '05 #1
4 15135


Tony Sutton wrote:

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


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/
Jul 20 '05 #2

"Tony Sutton" <To**@hypertony.co.ukNOSPAM> wrote in message
news:3f***********************@mercury.nildram.net ...
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>
^


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


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) ?

Jul 20 '05 #4
"Graham J" <in***************@orangebucket.co.uk> wrote in message
news:bl************@ID-203032.news.uni-berlin.de...

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) ?


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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: bearclaws | last post by:
I am looping through a list of categories and want to display the list horizontally (instead of vertically). I want to create a single row with 4 list items in each cell of the row. I thought...
9
by: Akseli Mäki | last post by:
Hi, the subject say quite a lot. I have about the following code(4.01 transitional): <p>blaa blaa blaa <ul> <li><a href="foo.html">foo</a></li> <li><a href="bar.html">bar</a></li> </ul>
1
by: Jacob Friis Larsen | last post by:
Do you know of a menu that is indexable and standards compliant? I found this: http://www.htmldog.com/articles/suckerfish/dropdowns/example/ Thanks, Jacob
4
by: abs | last post by:
Anybody has an idea how to get the <ul> element which is not nested in <li> element ? In other words I have several lists like this: <ul id="1"> <li>Aaaaaaaa</li> <li>Bbbbbbbb</li>...
2
by: Shaun | last post by:
Hello! I have a quick question regarding CSS and having it applied to all elements. I am trying to eliminate the gap between a paragraph and a list that usually occurs in html and I've found...
13
by: pipehappy | last post by:
Hi I search around and find there are many discussion about <ul><li><p>something</p></li></ul>. But I cannot find solution to <ul> itself. I pass the following html through validate.w3.org. and...
3
by: Man-wai Chang | last post by:
A 2 columns x 10 rows matrix input form <ul> <li> <ul> <li>item name 1 <li><input type="textbox" name="input_col_1_row_1"> <li><input type="textbox" name="input_col_1_row_2"> </ul> <li>
2
by: cityman007 | last post by:
Hi Somebody help me to solve the problem with <ul><li> with images. I used images with Hspace and Vspace and beside the images i make list. its overlapping in Firefox and not seen in IE7 ...
6
by: capricious | last post by:
Is it possible, so that when you do multiple <UL>'s to control how deep the UL's are marked? For example, it would defaultly look like this with multiple ULs and LIs: -- Code : Main...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.