DeSIGn

How to write HTML: article for Design SIG

Here is the code referred to in the article, ready to cut and paste into Notepad or your favourite text editor.

Comment code example

<html>

   <head>

     <title>Text here appears in the browser title bar</title>

  </head>

 

  <body>

<!--

This is an example of a comment that does not display in the browser. All the content that you want to diaplay is contained within the body tags. The next tag ends the comment.

-->

  </body>

</html>

Example html document template

<html>

   <head>

     <title>Page title goes here</title>

  </head>

 

  <body background="#000066" text="FFFFD8">

 

<h1>Page title goes here</h1>

<p>Then the rest of the content.<p>

<p>With multiple paragraphs</p>

 

  </body>

</html>