|
Posted by Els on 09/05/05 09:11
Noozer wrote:
> I'd also like to apply CSS here... what should one always include in their
> default CSS definitions?
Please, don't toppost.
> "Noozer" <dont.spam@me.here> wrote in message
> news:ZCQSe.375501$5V4.283130@pd7tw3no...
>> Just wondering if anyone uses a common starting template they use when
>> building an HTML page, ASP page, etc. What shouldn't be considered
>> optional?
Depends of what you're doing with a page I suppose.
My personal minimal template would be:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
@import "url-to-stylesheet";
</style>
</head>
<body>
<div id="container">
</div>
</body>
</html>
>> Something like:
>>
>> <html>
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>> "http://www.w3.org/TR/html4/strict.dtd">
The doctype needs be be placed /before/ everything else on the page.
>> <head>
>> <title>Page Title</title>
>> <link href="common.css" rel="stylesheet" type="text/css">
>> </head>
>> <script type="text/javascript" language=javascript>
>>
>> // -- Define global variables and automatically executed
>> code ---------------
>> </script>
afaik that script should be inside the <head>, not between head and
body. (HTML has no neck ;-) )
--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Navigation:
[Reply to this message]
|