#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
This is a physical tag, which is used to bold the text written between it.
This is a logical tag, which tells the browser that the text is important.
This is a physical tag which is used to make text italic.
This is a logical tag which is used to display content in italic.
This tag is used to highlight text.
This tag is used to underline text written between it.
This tag is used to appear a text in teletype. (not supported in HTML5)
This tag is used to draw a strikethrough on a section of text. (Not supported in HTML5)
It displays the content slightly above the normal line.
It displays the content slightly below the normal line.
This tag is used to display the deleted content.
This tag displays the content which is added
This tag is used to increase the font size by one conventional unit.
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