Every webpage you create should has a structure to make your webpage more efficient and clear. Firstly you have to know structure of HTML tags and then structure of the whole HTML page.
Tags in HTML can be:
<>) and closing
</ >) tags and some content between them. For example tag paragraph (p) is paired tag:
Any HTML page consist of two main parts:
As we can see in the image above every HTML document should start with
<!DOCTYPE> tag. It tells the browser what document to expect. More about this tag in the next chapter.
<html> tag represents the root of an HTML document and is must be written after
<head> tag provides general information (metadata) about the document, including its title and links to its scripts and style sheets.
<body> tag represents the content of an HTML document. There can be only one
<body> element in a document.
<!DOCTYPE html> <html> <head> <title>Title of my website</title> </head> <body> <p>Visible content of my website</p> </body> </html>
By: Tomas Silny
Edited: 2020-11-02 22:47:23