On 21 Sep 2008, at 16:18, tedd wrote:
At 4:06 PM +0100 9/21/08, Ashley Sheridan wrote:
I'm sorry, I didn't mean to be insulting! I do agree that you will
get
those errors if you choose the wrong doctype, and by wrong I mean one
that is mismatched with the types of tag you try to use.
Maybe I need to learn something here.
Are you saying then that if I want to use a <br/> tag, then I can't
use:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
So, instead I must use the <br> tag?
If so, interesting.
That's what the DocType is. It tells the browser what version of
(X)HTML you're using and therefore which tags are allowed and which
are not. It has a major effect on some browsers, and if you use the
right one it can help a lot when trying to make pages look the same in
all browsers. Worth reading up on.
-Stut
--
http://stut.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php