PDA

View Full Version : "document type does not allow element "li" here"



GioG7
Jul 16th, 2009, 07:46 PM
As you can see I am getting the following error when I try to validate this page, "document type does not allow element "li" here" on lines 55, 62, 69, 76, 83 and 94. Can someone please tell me what is going on because apparently I can't figure it out. Here is the code...

<ul>
<li>
55<li class="main">Digital Receivers and Decoders</li>
<ul>
<li>DRD 694/695 DVB-S2 Twin Receiver</li>
<li>DRD 699 DVB-S2 Receiver/IP Media Router</li>
<li>DRP 393 DVB-S2 MPEG-4 Receiver/Decoder</li>
</ul>
<br />
62<li class="main">IP Distribution</li>
<ul>
<li>DIX 200 IP-Remultiplexer/Streamer</li>
<li>DIP 120/121 IP - ASI Gateway</li>
<li>EQM 100 Edge-QAM Modulator</li>
</ul>
<br />
69<li class="main">Modulators</li>
<ul>
<li>AMA 299 Agile QAM Modulator</li>
<li>AMC 406 Twin QAM Modulator</li>
<li>VMB 195 Agile Audio/Video Modulator</li>
</ul>
<br />
76<li class="main">Encoders, Multiplexers and Scramblers</li>
<ul>
<li>EMA 207 QUAD MPEG Encoder/Multiplexer</li>
<li>MXA 107 Multiplexer</li>
<li>SCA 107 DVB Scrambler</li>
</ul>
<br />
83<li class="main">C-LINE Modular TWIN Channel Headend System</li>
<ul>
<li><System Overview</li>
<li>STC 096 Twin 8PSK/QPSK to QAM Transcoder</li>
<li>TTC 097 Twin ATSC/QAM to QAM Transcoder</li>
<li>VMC 101 Agile Twin Audio/Video Modulator</li>
<li>AMC 406 Twin QAM Modulator</li>
<li>VMB 195 Agile Audio/Video Modulator</li>
<li>AMB 406 Professional QAM Modulator</li>
</ul>
<br />
94<li class="main">Special Products</li>
<ul>
<li>ASI Splitter DTS 397</li>
</ul>
</li>
</ul>

ckeyrouz
Jul 16th, 2009, 07:56 PM
Which browser are you using:

I have tested it on IE7, FF3, Google Chrome, Flock, Opera 9.64, Safari 4.0.2 for windows, K-Meleon 1.5.3

and it opened with no problems on all of them.

Is this all your code or there is something missing in your post?

VIPStephan
Jul 16th, 2009, 08:01 PM
You can’t have any element except list items inside the list element. You need to put nested lists and the line breaks into the list items.


<ul>
<li>list item</li>
<li>list item
<ul>
<li>nested list item</li>
<li>nested list item</li>
</ul>
</li>
<li>list item<br /></li>
</ul>


Oh and list items must be direct children of lists, they can’t stand alone or be direct children of list items.

GioG7
Jul 16th, 2009, 08:30 PM
Got it. The problem was the following...

Instead of...

<li class="main">Digital Receivers and Decoders</li>
<ul>
<li>DRD 694/695 DVB-S2 Twin Receiver</li>
<li>DRD 699 DVB-S2 Receiver/IP Media Router</li>
<li>DRP 393 DVB-S2 MPEG-4 Receiver/Decoder</li>
</ul>
<br />

It was...

<li class="main">Digital Receivers and Decoders
<ul>
<li>DRD 694/695 DVB-S2 Twin Receiver</li>
<li>DRD 699 DVB-S2 Receiver/IP Media Router</li>
<li>DRP 393 DVB-S2 MPEG-4 Receiver/Decoder</li>
</ul>
<br /></li>

Thanks VIPStephan =)