❐HTML❐

❐wD Learn

HTML

HTML Introduction

HTML Element

HTML Attributes

HTML Heading

HTML Paragraph

HTML Style

HTML Format

HTML Color

HTML Link

HTML Image

HTML Table

HTML List

HTML Symbols

HTML Emojis

HTML Forms

HTML Text Format
HTML contains several elements for defining text with a special meaning.

Example

This text is bold
This text is italic
This is subscript and superscript
HTML Format Element Formatting elements were designed to display special types of text:
HTML <b> and <strong> Elements
The HTML <b> element defines bold text, without any extra importance.

Example

<b>This text is bold</b>
The HTML <strong> element defines text with strong importance. The content inside is typically displayed in bold.

Example

<strong>This text is important!</strong>
HTML <mark> Element
The HTML <mark> element defines text that should be marked or highlighted:

Example

<p>Do not forget to buy <mark>milk</mark> today.</p>
HTML <sub> Element
The HTML <sub> element defines subscript text. Subscript text can be used for chemical formulas, like H2O.
Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font:

Example

<p>This is <sub>subscripted</sub> text.</p>
HTML <sup> Element
The HTML <sup> element defines superscript text. Superscript text appears half a character above the normal line.
Superscript text can be used for footnotes, like WWW[1]:

Example

<p>This is <sup>superscripted</sup> text.</p>
HTML Text Formatting Elements
Tag Description
<b> Defines bold text
<em> Defines emphasized text
<i> Defines a part of text in an alternate voice or mood
<small> Defines smaller text
<strong> Defines important text
<sub> Defines subscripted text
<sup> Defines superscripted text
<ins> Defines inserted text
<del> Defines deleted text
<mark> Defines marked/highlighted text