HTML provides options for formatting text, such as bold, italic, underlined, highlighted, or even strikethrough. These help emphasize information on the page.
The most common formatting includes bold (<b>), italic (<i>), underline (<u>), and highlight (<mark>). These tags help visually emphasize important content.
Code Details
<b>This text is bold</b>
<i>This text is italic</i>
<u>This text is underlined</u>
<mark>This text is highlighted</mark>
Preview
HTML also supports smaller text (<small>), strikethrough (<del>), inserted text (<ins>), and subscripts/superscripts (<sub> and <sup>).
Formatting elements should be used when you want to visually highlight important parts, such as errors, warnings, or emphasized information. Make sure that formatting does not compromise readability.
Remember that visual formatting is not always recognized by screen readers. The meaning of the text should not rely solely on appearance – for example, the <b> tag doesn’t convey meaning, but <strong> does.
Semantic tags like <strong> or <em> are not only visually distinct but also carry meaningful context. These should be used when content is truly important or emphasized.
Select Language
Set theme
© 2025 ReadyTools. All rights reserved.