You are here: Re: What this piece of code doesn't validate? « HTML « IT news, forums, messages
Re: What this piece of code doesn't validate?

Posted by Ganesh on 10/29/06 03:28

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
</P>
<UL>
<LI><A href="contact.htm">Contact Us</A>
</UL>
<P>&nbsp;</P>
> </body>
> </html>
>

It has to go this way. You cannot use <ul> inside <p> as UL is a block
level element

Ganesh

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация