You are here: Re: Need some clarifications on xhtml « HTML « IT news, forums, messages
Re: Need some clarifications on xhtml

Posted by jojo on 11/27/69 11:59

Thierry Lam wrote:

> I've decided to switch to xhtml and I've added the following at the top
> of my page:

Why?

>
> <!DOCTYPE html
> PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>

Where do you expect the warnings to appear? Definetly not in the
browser... (except you use some firefox extension or something similar)

>
> However, my page is still working and I can't see any warnings whenever
> I use old html tags like <br> instead of <br/>. What other things
> should I add to validate xhtml tags?
>

A XHTML document should look like this:

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- page head -->
</head>
<body>
<!-- page body -->
</body>
</html>

 

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

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