Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Why says no start tag on "</p>"?
Why says no start tag on "</p>"? [message #211890] Mon, 07 April 2008 03:05 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 143
Registered: July 2009
Senior Member
I downloaded dojo 1.1.0 and imported it into an Eclipse project. I
noticed that several of the files had red marks on them. For example,
here is the body element from one of the files:

<body class="tundra">

<h1 class="testTitle">dojo._Animation test:</h1>

<p>
<div class="dijitInline" id="theNode">Test</div>
</p>

</body>

When I view this in Eclipse, there is a red mark on the "</p>" line,
saying "No start tag (<p>)".

The DOCTYPE is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

Is this error valid somehow?
Re: Why says no start tag on "</p>"? [message #211903 is a reply to message #211890] Mon, 07 April 2008 06:26 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

David Karr wrote:
> I downloaded dojo 1.1.0 and imported it into an Eclipse project. I
> noticed that several of the files had red marks on them. For example,
> here is the body element from one of the files:
>
> <body class="tundra">
>
> <h1 class="testTitle">dojo._Animation test:</h1>
>
> <p>
> <div class="dijitInline" id="theNode">Test</div>
> </p>
>
> </body>
>
> When I view this in Eclipse, there is a red mark on the "</p>" line,
> saying "No start tag (<p>)".
>
> The DOCTYPE is:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
>
> Is this error valid somehow?

It's not well explained in the error text, but it's because the
strict.dtd indicates that the "div" tag is not a valid child of a
"p" tag.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:0.5M6 ?
Next Topic:WTP Dynamic project - Axis2 and Maven
Goto Forum:
  


Current Time: Thu Apr 25 13:50:51 GMT 2024

Powered by FUDForum. Page generated in 0.03347 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top