Re: <br> was [PHP] Re: render html
| From: | Stut | Date: | Sun, 21 Sep 2008 19:37:19 +0000 |
| Subject: | Re: <br> was [PHP] Re: render html | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280661@lists.php.net to get a copy of this message | ||
On 21 Sep 2008, at 16:18, tedd wrote:
At 4:06 PM +0100 9/21/08, Ashley Sheridan wrote: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/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.