Jump to content

HTML Tutorial/Creating Your First HTML Page

From Wikiversity

The HTML File

HTML files are text files, so you can use any text editor to create your first webpage.
There are some very nice HTML editors available; you can choose the one that works for you.

Add the basic HTML structure to the text editor with "This is a line of text" in the body section.

<html>
   <head>
   </head>
   <body>
      This is a line of text.
   </body>
</html>

Don’t forget to save the file. HTML file names should end in either .html or .htm.

The <title> Tag

To place a title on the tab describing the web page, add a <title>1 element to your head section:

<html>
   <head>
      <title>first page</title>
   </head>
   <body>
      This is a line of text.
   </body>
</html>

The title element is important because it describes the page and is used by search engines.

1. <title>
Defines a title for the document.