#8 HTML Text Formatting

HTML Formatting is a process of formatting text for better look and feel. HTML provides us ability to format text without using CSS. There are many formatting tags in HTML. These tags are used to make text bold, italicized, or underlined. There are almost 14 options available that how text appears in HTML and XHTML.

Element nameDescription
<b>This is a physical tag, which is used to bold the text written between it.
<strong>This is a logical tag, which tells the browser that the text is important.
<i>This is a physical tag which is used to make text italic.
<em>This is a logical tag which is used to display content in italic.
<mark>This tag is used to highlight text.
<u>This tag is used to underline text written between it.
<tt>This tag is used to appear a text in teletype. (not supported in HTML5)
<strike>This tag is used to draw a strikethrough on a section of text. (Not supported in HTML5)
<sup>It displays the content slightly above the normal line.
<sub>It displays the content slightly below the normal line.
<del>This tag is used to display the deleted content.
<ins>This tag displays the content which is added
<big>This tag is used to increase the font size by one conventional unit.
<small>This tag is used to decrease the font size by one unit from base font size.

Try them all.

See the Pen html text formatting by Arpit (@soniarpit) on CodePen.

Hope you like this tutorial.

Previous: #7 HTML Paragraphs

Next: #9 HTML Phrase tags

Support CodeSnail

If you appreciate my work, or if it has helped you along your journey. It would mean a lot to me if you could write a message on my wall and share a cup of coffee (or tea) with me.

Buy Me A Coffee

Leave a Comment

Copy link
Powered by Social Snap