Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to validate a page

Status
Not open for further replies.

multichild

Programmer
Jan 28, 2006
76
GB
I have a page that is almost validated but for a piece of code at the bottom.

Here is the code:

<%
'iterate thro recordset
Do while not rsuser.eof
%>
</p>
<li>
<span class="style18">
<%
response.write rsuser("event_Day") &"&nbsp;"
response.write rsuser("event_Date") & "&nbsp;"
response.write rsuser("event_Month") & "&nbsp;" & "&nbsp;"
response.write rsuser("event_Year") & "&nbsp;" & "&nbsp;"
response.write("<span class=""5thItem"">"&"- "&rsuser("event_SoldOut")&"</span>")
rsuser.movenext

Loop

'close resources used
rsuser.close
conn.close

'clean up
set rsuser=nothing
set conn=nothing
%>

</span>
</li>

From this piece of code I am generating these errors:

document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag.

I need that li tag there for the output, but it is causing a problem, like the </p> tag.

Can anybody help me get this right here, so that the output is what i require which meand keeping the li and p tags and getting it to validate.

cheers

Lee
 
As the error states, you need the parent tag associated with a list item (<li>) tag. You can either use an unordered list (<ul) or an ordered list (ol) for this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top