Text Elements and Formatting Tags

In this lesson, we will learn text elements and formatting tags in HTML. h1–h6, p, strong, em, br, hr, mark, small, blockquote, code, and text hierarchy will be explained with simple examples. ## Lesson objective In this lesson, we will learn text elements and formatting tags in HTML. In the previous lesson, we covered HTML document structure, , , , , , , nested elements, and clean HTML skeleton. Now we learn how to write text content correctly on a page. In most web pages, the main content consists of text: In HTML, text is not just writing. The structure and meaning of text should be given with correct tags.