Tags for structuring text in HTML
From the point of view of the convenience of visitors, it is good that the text in web pages is divided into sections with headings, subheadings, paragraphs and lists. A solid line can be used as a separator between sections, reflecting the thematic break in the content.Arranging and structuring text on a web page is not done in the code editor by the newline and tab keys, but by HTML text tags. The main tags for structuring text are:
- <h1>, <h2>, …, <h6> – heading in the text
- <p> – paragraph
- <br> – line break
- <hr> – horizontal line
HTML5 Tutorial
Syntax
The syntax rules in HTML5 are ...
Text Structuring
In HTML5, text is structured by headings and paragraphs ...
- The most important heading in the web page is marked with <h1>, its subheadings with <h2>, and so on.
- A line break with <br> means a new line within the same paragraph.
- Search engines use titles to index the content of web pages.
- CSS styles are used to format text in web pages, which determine the position of the text and characteristics such as font, color, background, bold, size, letter spacing, etc.
-
<li>element 1
<li>element 2
...
Colors:
- red
- green
- son
CSS styles allow you to choose the leading character of the list, as well as additional formatting of the elements. Lists can be nested to create more complex content structures.