473,385 Members | 1,877 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,385 software developers and data experts.

html syntax question

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>
May 22 '06 #1
2 1074
It does work but I still get the error only in the IDE

btw, is there a more sensible editor for html?

"Samuel Shulman" <sa************@ntlworld.com> wrote in message
news:uR**************@TK2MSFTNGP04.phx.gbl...
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>

May 22 '06 #2
>> 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

"Samuel Shulman" <sa************@ntlworld.com> wrote in message
news:uv**************@TK2MSFTNGP03.phx.gbl...
It does work but I still get the error only in the IDE

btw, is there a more sensible editor for html?

"Samuel Shulman" <sa************@ntlworld.com> wrote in message
news:uR**************@TK2MSFTNGP04.phx.gbl...
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>


May 23 '06 #3

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

Similar topics

4
by: VK | last post by:
09/30/03 Phil Powell posted his "Radio buttons do not appear checked" question. This question led to a long discussion about the naming rules applying to variables, objects, methods and properties...
1
by: Ralph Krausse | last post by:
I know more html is needed to really produce this but enough is here for me to ask my question. So, this HTML code produce 2 buttons. One button is a HTML control and the other is ASP Web or Server...
9
by: Frances | last post by:
at work we switched to UTF-16 encoding and now when I open html files in HomeSite the code is all messed up, and if I turn on "enable non-ANSI file encoding" code looks fine when I open files but I...
22
by: Luke | last post by:
Elements with name attribute: form, input, textarea, a, frame, iframe, button, select, map, meta, applet, object, param, img (if you know more reply...) Methods of addresing html elements:...
1
by: Ralph Krausse | last post by:
I know more html is needed to really produce this but enough is here for me to ask my question. So, this HTML code produce 2 buttons. One button is a HTML control and the other is ASP Web or Server...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.