Posted by Beauregard T. Shagnasty on 10/29/06 01:25
kosanovic@gmail.com wrote:
> Hello, Can somebody please tell me what to do to make this validate?
> The error is "end tag for element "P" which is not open."
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html lang="en">
> <head>
> <meta http-equiv="content-type"content="text/html;charset=iso-8859-1">
> <meta name="Description" content="Software shareware">
> <title> test layout </title>
> </head>
> <body>
> <P class="title">BLABLA
> <UL>
You can't put a <ul> list inside a paragraph. Only inline elements can
be used in a paragraph.
> <LI><A href="contact.htm">Contact Us</A>
> </UL>
> </P>
... so the <p> for this closing </p> was closed when the <ul> was
encountered.
> </body>
> </html>
--
-bts
-Motorcycles defy gravity; cars just suck
[Back to original message]
|