Reply to Re: Common template for HTML page?

Your name:

Reply:


Posted by WD10 on 09/05/05 09:05

On Mon, 05 Sep 2005 05:23:05 +0000, Noozer wrote:

> 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?
>
> Something like:
>
> <html>
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
>
>
>
> <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>
>
>
>
> <body>
>
>
> </body>
>
> </html>

The order above is incorrect. This is how I would do it:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Your page title goes here</title>
<meta name="description" content="A couple of sentences about your web
site.">
<meta name="keywords" content="10 or 15 keywords about your site,
separated by commas">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="common.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="javascript.js"></script><!--
JavaScript is optional -->
</head>

<body>
<!-- You can do whatever you want in the body, but I think that it is good
to keep it structured with headers and paragraphs like this: -->
<h1>Main header</h1>
<h2>Secondary header</h2>
<p>Some content.</p>
<h2>Another Secondary Header</h2>
<p>Some more content.</p>
</body>
</html>



----------------------------
J.Cohen
http://tips.webdesign10.com

[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

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