Loading...


Welcome to HtML lesson 02


Making your first HTML page



Creating the HTML file


Open up your computer's plain text editor and create a new file.

Type some HTML code


Start with an empty window and type the following code:

Saving the file


Now save the file on your desktop as "myfirstpage.html ".


Explanation of code


The first line DOCTYPE html is the document type declaration. It instructs the web browser that this document is an HTML5 document. It is case-insensitive.
The head element is a container for the tags that provides information about the document, for example, title tag defines the title of the document.
The body element contains the document's actual content (paragraphs, links, images, tables, and so on) that is rendered in the web browser and displayed to the user.


Fav icon


link rel="shortcut icon" href="favicon.ico" type="image/x-icon"