I'm just wondering. Whats the point og writing
<html>
<head>
</head>
<body>
</body>
</html>
in a file? If you don't write it it works just as great. Thing is that since it still works great it may be some other reasons to use the tags. Anyone?
HTML Tags
Moderator: General Moderators
Yup
A lot of the time it's ok when you're designing on IE but then you view it in Netscape and grrrr
Like I forgot a </td> in something I was working on recently and didn't notice at all cause IE assumes it's there if you start a new <td> in the same table... but then someone comes along with NN and doesn't start the new <td>
Also of course the <head> tags are nice since you can set a title in there and for instance... the title is what's used when bookmarking a page. That's also why I have the title generated dynamicly with php so that even if all content (different version stuff) is loaded in a single .php page the title still shows what people are looking at.
it's just neater, more stable, practical and not a great deal of work.
A lot of the time it's ok when you're designing on IE but then you view it in Netscape and grrrr
Like I forgot a </td> in something I was working on recently and didn't notice at all cause IE assumes it's there if you start a new <td> in the same table... but then someone comes along with NN and doesn't start the new <td>
Also of course the <head> tags are nice since you can set a title in there and for instance... the title is what's used when bookmarking a page. That's also why I have the title generated dynamicly with php so that even if all content (different version stuff) is loaded in a single .php page the title still shows what people are looking at.
it's just neater, more stable, practical and not a great deal of work.
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
If by pure PHP you mean a config file or function file then no. You should also only have one opening and one closing <html>, <head> and <body> tag per document. So if you have a templating system which includes a header, navigation bar, main content and footer, you shouldn't have these tags in each of those files. Instead you should work your template so that they all appear once in the correct place.Zeceer wrote:But when writing pure PHP you need HTML tags?
Mac