Basic structure of an HTML page
A website page is a regular text file with the extension .html. The HTML text of the page is stored inside this file along with tags. This file must have the following tags: the html tag, which must contain the text of the entire website (everything written outside this tag will be ignored by the browser), and inside it there must be two more tags: the head tag for the service content of the page and the body tag for the main text, which is visible on the browser screen.
The service content that is located inside the head tag includes many different things, but for now we only need two of them. This is the title tag, which specifies the page title that will be visible in the browser tab, and the meta tag, which specifies the page encoding (it is set in the charset attribute and usually has the value utf-8).
In addition, before the html tag, the doctype construction is usually written, which indicates the version of the HTML language on which the site is made. The current version of the language is number five and the doctype for it should look like this:
<!DOCTYPE html>
So let's look at the basic structure of the page:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>This is the title</title>
</head>
<body>
This is the main content of the page.
</body>
</html>
Create a file with the extension .html. Copy the main structure of the page into it. Save your file. Then open it in the browser by dragging the file with the mouse or double-clicking on it.