Web page Error

liunx

Guest
Hi.

On the page, <!-- m --><a class="postlink" href="http://photoweb.esctonline.com/index.php">http://photoweb.esctonline.com/index.php</a><!-- m -->

the CSS does not work to full effect. The rest of my site works perfectly, but not on this page. What could be causing this?Try fixing your XHTML errors. (<!-- m --><a class="postlink" href="http://validator.w3.org/check?uri=http%3A%2F%2Fphotoweb.esctonline.com%2Findex.php">http://validator.w3.org/check?uri=http% ... Findex.php</a><!-- m -->)To begin with, you need a doctype. Looks like you should be using one of these:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">Whats the difference between these doc types?The difference is they define syntax what you can have in your valid document and what you cannot. The Strict is stricter.Basically, a strict doctype disallows deprecated elements and parameters (items which are still "legal" but are not the preferred option and some day may become "illegal"). A transitional type allows those deprecated elements and the validator will not complain about them. If creating a new document, I would always recommend using the strict doctype. If modifying an existing document which uses deprecated elements, you might want to use the transitional doctype until you have the opportunity to clean it up.
 
Back
Top