What is HTML5 Text formatting?


What is HTML5 Text formatting?

HTML Text formatting is a way to format text to make it look good. HTML allows you to format text without using CSS. HTML contains many format tags. These tags make the text bold, underlined, and italicized. HTML and XHTML have nearly 14 options for how to render text.

Below are the various options you can use to format your text.

Make text bold or strong: You can use the tag to make the text bold. The tag uses both the start tag and the end tag. The text to be bold must be inside the tags. You can also use the tag to enhance the text and add semantic meaning. It also starts with and ends with a tag.

Making text Italic or emphasize: The < i > tag is used to italicise the text. It opens with < i > and ends with tag. The < em > tag is used to emphasize the text, with added semantic importance. It opens with < em > and ends with tag.

Highlighting a text: It is also possible to highlight a text in HTML using the < mark > tag. It has a opening tag < mark > and a closing tag .

Making a text Subscript or Superscript: The < sup > element is used to superscript a text, and the < sub > element is used to subscript a text. They both have an opening and a closing tag.

Making text smaller: The < small > element is used to make the text smaller. The text that needs to be displayed smaller should be written inside < small > and tag.

Striking through the text: The < del > element is used to strike through the text marking the part as deleted. It also has an opening and a closing tag.

Adding a text: The < ins > element is used to underline a text marking the part as inserted or added. It also has an opening and a closing tag.