Feedback

When you open your document in the browser it should look like the example above. However, your computer may show the example in a different font (except for the line which specifies Arial), since we have not specified which font to use. Your browser may also appear differently to the example.

Your final HTML code should look something like this:

<html> 
<head> 
<title>Example basic HTML tags</title> 
</head> 
<body bgcolor="yellow"> 
<h1>Welcome - this is a large heading</h1> 
<h2>A smaller heading</h2> 
<p> This is a very simple web page. The background colour is defined in the BODY tag.</p> 
<p> Notice that the         browser 
does not pay        attention to       spaces   added to 

a        document.</p> 
<p><font face="Arial"> This is how you change the font of your text.</font></p>
<p align="center">You can change the alignment using the CENTER tag</p>  
<p>This is a numbered list of reasons to write web pages:</p> 
  <ol> 
    <li>Writing web pages is easy</ li > 
    <li>Millions of people have access to your information</li> 
  </ol> 
<p>You can also change the colour of the text:<p> 
<p><font color="Red">Notice that the word COLOR is spelt the American way. </font><font color="0066FF"><b>And so is CENTER.</b></font></p> 
</body> 
</html>

This code example is also discussed in the Reading document of this learning pack.