HTML Text Formatting

HTML inline text semantic/formatting to define the meaning, structure, or style of a word, line, or any arbitrary piece of text.


<b> Element

The html <b> element is used to draw the reader's attention to the element's contents, which are not otherwise granted special importance.

        <b>This is bold text</b>

This is bold text



<strong> Element

The html <strong> element indicates that its contents have strong importance, seriousness, or urgency. Browsers typically render the contents in bold type.

        <strong>This text is important!</strong>

This text is important!



<i> Element

The html <i> element represents a range of text that is set off from the normal text
The content inside is typically displayed in italic.

        <i>This text is in italics!</i>

This text is in italics!


<em> Element

The html <em> element defines emphasized text. The content inside is typically displayed in italic.

        <em>This text is emphasized</em>

This text is emphasized



<small> Element

The html <small> element represents side-comments and small print, like copyright and legal text.

        <small>This is some smaller text.</small>

This is some smaller text.



<mark> Element

The html <mark> element represents text which is marked or highlighted for reference or notation purposes.

        <p>This is <mark> marked</mark> text.</p>

This is marked text.