Lesson 2: Essential Tags

Overview

There are some basic tags you must add to every HTML document you create.

Learner Outcomes

Students will learn the basic tags required for all HTML documents

Activities

Example of basic HTML document Structure...
Type the following in your text editor

   <html>

   <head>
   <title>Title of your Web page</title>
   </head>

   <body>

   </body>

   </html>



You may find it easier to read if you add extra blank lines as you see in the example above.

Note: Extra spaces and blank lines will be ignored when the HTML is interpreted.

Let's now examine each of these tags:

   <html> is typed before all the text in the document. This is the language used to create Web pages.
   </html> this tag is used at the end of all the text in the document.

   <head> the head provides information about the document including the title.
   </head> closes the head tag and comes after the title.

   <title>You must give your document a title. The title appears in the title bar of the window.
   </title> closes the title tag.

   <body>The body contains the contents of your document.
   </body> closes the body tag.

   </html> ends the document.

Create a page and experiment with the tags.