HTML (HyperText Markup Language) is a markup language used for creating web pages. HTML defines the structure of web content using elements and tags. In this lesson, we will learn the basic HTML elements, how to use them correctly, and what common mistakes to avoid.
<!DOCTYPE html>
TagThis tag specifies the document type and HTML version. Most modern web pages use the following line:
<html>
TagThe <html>
tag serves as a container for all the content of a web page. It starts with <html>
and ends with </html>
:
<head>
TagThe <head>
tag contains metadata such as the page title, links to styles, and scripts:
Моя первая веб-страница
<body>
TagThe <body>
tag contains all the visible content of the web page:
Привет, мир!
Это мой первый параграф.
<h1>
– <h6>
)Headings are used to create titles of different levels:
Заголовок первого уровня
Заголовок второго уровня
Paragraphs (<p>
)
Paragraphs are used to create text:
Это пример параграфа.
Links (<a>
)
Links are used to navigate to other pages or resources:
Images (<img>
)
Images are added using the <img>
tag, which does not have a closing tag:
Common Mistakes
Each opening tag (except for self-closing tags) must have a corresponding closing tag:
Paragraph text
Some tags require mandatory attributes. For example, the <img>
tag requires the src
attribute:

Do not use deprecated tags such as <center>
and <font>
. Instead, use CSS for styling.
Missing <meta charset="UTF-8">
Tag
The <meta charset="UTF-8">
tag is essential for correctly displaying special characters and different languages on a webpage.
In this lesson, we covered the basic HTML tags and their proper usage. Understanding the fundamentals of HTML is the first step in creating web pages. Avoid common mistakes and stay updated with current standards.
Create a simple web page containing the following elements:
My First Web Page
My First Web Page
This is a description of my first web page. I am learning to create HTML markup.
Go to Example
Check your work for errors and make sure the page is displayed correctly in the browser.
Телефон: +375 33 910-08-92
Email: info@codefor.tech
Адрес: г. Барановичи, ул. Пирогова, д. 7
© 2024-2025 Все права защищены. CodeFor.