473,651 Members | 2,645 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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


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.nildra m.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************ ***@orangebucke t.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
4660
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 this would work but I get this error: "End tag 'xsl:if' does not match the start tag 'ul'." Any thoughts?
9
6839
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
1359
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
2206
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> <li>Cccccccc <ul> <li>111111</li> <li>222222</li>
2
7628
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 away to do that with this code: <p>a</p> <ul style="margin-top: -20; padding-top: 0"> <li>1</li>
13
6852
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 it always report error of misuse of <ul>. Could someone tell me the solution to this problem? Thanks! ----------------------------- <!DOCTYPE html
3
6681
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
1826
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 http://www.goalsettingthatworks.com/demo/index.html mycode: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
6
4467
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 Menu<ul>Fruits<ul><li>Apples</li><li>Oranges</li></ul></ul> .. -- Returns :
0
8349
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8275
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8795
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8460
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7296
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.