Reply to Re: Common template for HTML page? --and CSS

Your name:

Reply:


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 -

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация