HTML Text Formatting tags

Text formatting tags in HTML are used to change the appearance of text on a webpage. They help emphasize content, making it easier for users to read and understand.

Tutorials dojo strip

HTML Text Formatting Tags Syntax

Explanation of Syntax:

  • <b>: Makes the text bold but doesn’t indicate importance.
  • <i>: Italicizes the text without implying emphasis.
  • <u>: Underlines the text.
  • <s>: Displays text with a strikethrough.
  • <strong>: Indicates that the text is of strong importance (typically bold).
  • <em>: Indicates that the text is emphasized (typically italicized).
HTML




HTML Text Formatting Tags Example Code

Explanation of Code:

  • Bold (<b>This is bold text</b>): This tag makes the text appear bolder. It’s often used for emphasis but doesn’t convey any importance.
  • Italic (<i>This is italic text</i>): This tag italicizes the text, which can be useful for titles or foreign words.
  • Underline (<u>This is underlined text</u>): This tag adds an underline to the text, often used for links but can also be applied for stylistic purposes.
  • Strikethrough (<s>This text is strikethrough</s>): This tag shows text with a line through it, which can indicate that something is no longer applicable or relevant.
  • Strong Importance (<strong>This text is important</strong>): This tag indicates that the text is of strong importance and is displayed in bold.
  • Emphasis (<em>This text is emphasized</em>): This tag indicates that the text should be emphasized, typically displayed in italics.
HTML




HTML Labs

Tutorials dojo strip