HTML Basics

A Simple HTML File
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html> 
<head> 
<title> 
     My Home Page
</title> 
</head> 

<body> 
<h1>My Home Page </h1> 
<p> 
      Welcome to my home page
</p> 
</body> 

</html>
DOCTYPE
Declares the type of HTML/XHTML being used.
HEAD
Contains information about the page as a whole.
BODY
Everything that will appear in the browser display window.

You prepare a document in HTML by creating a plain text file containing your text, adding mark-up tags to indicate the role of each block of text, and then using styles to how the blocks will be displayed.