Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Why says no start tag on "</p>"?
Why says no start tag on "</p>"? [message #211890] Sun, 06 April 2008 23:05 Go to next message
David M. Karr is currently offline David M. Karr
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 02:26 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2235
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 WTP, IBM
Previous Topic:0.5M6 ?
Next Topic:WTP Dynamic project - Axis2 and Maven
Goto Forum:
  


Current Time: Fri Jul 25 05:19:01 EDT 2014

Powered by FUDForum. Page generated in 0.01998 seconds