Welcome! In this lesson, you’ll learn how to format text in HTML using different tags. Formatting helps make your webpage readable and attractive.
Used to define a block of text (a paragraph).
<p>This is a paragraph</p>
Makes text bold (not important, just visually bold).
<p>This is <b>bold</b> text</p>
Makes text italic.
<p>This is <i>italic</i> text</p>
Underlines the text.
<p>This is <u>underlined</u> text</p>
Headings go from <h1> (biggest) to <h6> (smallest).
<h1>Heading 1</h1>
<h2>Heading 2</h2>
...
<h6>Heading 6</h6>
There are more tags to style text:
<strong> - Important (bold with meaning)<small> - Smaller text<big> - Bigger text<mark> - Highlighted/marked text<sub> - Subscript<sup> - Superscript<s> - Strikethrough<del> - Deleted text (crossed out)<ins> - Inserted text (underlined)<br> - Line break<hr> - Horizontal line<tt> - Teletype/monospace (old style)This is a Paragraph
This is a Bold Text
This is an Italic Text
This is a Underline Text
This is a Strikethrough Text
This is a Small Text
This is a Big Text
This is a Teletype Text
This is a Strong Text
This is before line break
This is after Line break
This is a SubScript Text
This is a Superscript Text
This is a Marked Text
This is a Deleted Text
This is an Inserted Text