Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Elements

0/1

HTML Attributes

0/1

HTML Headings

0/1

HTML Paragraphs

0/1

HTML Styles

0/1

HTML Formatting

0/1

HTML Quotation

0/1

HTML Comments

0/1

HTML Colors

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Block and Inline

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML - The Head Element

0/1

HTML Style Guide

0/1

HTML Entities

0/1

HTML Symbols

0/1
Text lesson

HTML Formatting

HTML Formatting Elements

HTML provides formatting tags to present text in distinct styles:

  • <b> – Bold text
  • <strong> – Important text
  • <i> – Italic text
  • <em> – Emphasized text
  • <mark> – Marked text
  • <small> – Smaller text
  • <del> – Deleted text
  • <ins> – Inserted text
  • <sub> – Subscript text
  • <sup> – Superscript text

HTML <b> and <strong> Elements

The <b> tag in HTML is used to make text bold without implying any additional significance.

Example

<b>This text is bold</b>

The <strong> element in HTML is utilized to denote text of significant importance, which is commonly rendered in bold.

Example

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

 

Click to Learn

 

HTML <i> and <em> Elements

The <i> tag in HTML is used to indicate text in a different voice or mood, often displayed in italicized form.

Tip: The <i> tag is frequently used to indicate a technical term, a foreign phrase, a thought, a ship’s name, and similar items.

Example

<i>This text is italic</i>

The <em> element in HTML is designed to emphasize text, which is usually presented in an italic style.

Tip: A screen reader will emphasize words within the <em> tag, applying verbal stress.

Example

<em>This text is emphasized</em>

 

Click to Learn

 

HTML <small> Element

The <small> tag in HTML is used to specify text that should appear smaller in size.

Example

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

 

Click to Learn

 

HTML <mark> Element

The <mark> element in HTML is intended for text that needs to be highlighted or marked.

Example

<p>Do not forget to buy <mark>milk</mark> today.</p>

 

Click to Learn

 

HTML <del> Element

The <del> tag in HTML is used to indicate text that has been removed from a document, with browsers typically rendering this text with a line struck through it.

Example

<p>My favorite color is <del>blue</del> red.</p>

 

Click to Learn

 

HTML <ins> Element

The <ins> element in HTML denotes text that has been added to a document, and browsers commonly display this text with an underline.

Example

<p>My favorite color is <del>blue</del> <ins>red</ins>.</p>

 

Click to Learn

 

HTML <sub> Element

The <sub> tag in HTML is used for subscript text, which is positioned slightly lower than the normal text line and often in a smaller font size. This is particularly useful for notations such as chemical formulas, for example, H2O.

Example

<p>This is <sub>subscripted</sub> text.</p>

 

Click to Learn

 

HTML <sup> Element

The <sup> element in HTML is designated for superscript text, which is displayed a bit higher than the regular text line and may be shown in a smaller font size. It’s commonly used for references such as footnotes, exemplified by WWW[1].

Example

<p>This is <sup>superscripted</sup> text.</p>

 

Click to Learn