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]
|