All HTML documents are divided into two main parts: the head and the body. When you begin any new page, it must have a declaration: . It’s telling or declaring to the browser that the following file is an HTML file.
To build any webpage you will need four primary tags: ,,
Here is a diagram, showing the two main parts and the primary tags.
Every HTML document begins and ends with the tag. This tells the browser that the following document is an html file. Remember, tags tell the browsers how to display information.
Thetag contains the title of the document along with general information about the file, like the author, copyright, keywords and/or a description of what appears on the page.
Appears within thetags and gives the title of the page. Try to make your titles descriptive, but not more than 20 words in length. The title appears at the very top of the browser page on the title tab.
The main content of your page is placed within the body tags: your text, images, links, tables and so on.
Part of the web page structure is called nesting. Notice above how the tag
Each new set of tags are nested inside other tags, just like those Russian dolls, Matryoshka. Think of it another way, like smaller boxes inside larger boxes.
Good job so far. Are you ready to build your first page? Then let’s go!