html syntax question

S

Samuel Shulman

Please view the code below
I get the following error: Per the active schema, the element 'li' cannot be
nested within 'div'.

Why?


Thanks
Samuel


<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="SelectState.aspx.vb" Inherits="EsarWeb.SelectState"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>SelectState</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<DIV style="DISPLAY: inline; Z-INDEX: 101; LEFT: 96px; WIDTH: 584px;
POSITION: absolute; TOP: 32px; HEIGHT: 312px"
ms_positioning="FlowLayout">Label
<asp:Repeater id="Repeater1" runat="server">
<ItemTemplate>
<li>

<%# DataBinder.Eval(Container,"DataItem.Title")%>
</li>
</ItemTemplate>
<AlternatingItemTemplate>
<font color="green">
<%# DataBinder.Eval(Container,"DataItem.Title")%>
</font>
</AlternatingItemTemplate>
</asp:Repeater></DIV>
</form>
</body>
</HTML>
 
S

Samuel Shulman

It does work but I still get the error only in the IDE

btw, is there a more sensible editor for html?
 
B

Bob Lehmann

is there a more sensible editor for html?

By sensible, do you mean one that will let write invalid HTML without
warning you?

Where is your <ul> tag?

Bob Lehmann
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top