DEV Community

Cover image for Simple Explanation of Formatting tags
yashghadge77
yashghadge77

Posted on • Edited on

1

Simple Explanation of Formatting tags

1.<b>:
The bold tag in HTML is used to make text bold.
example:

<b>Bold Text</b>
Enter fullscreen mode Exit fullscreen mode

output:Bold Text

2.<strong>:
Indicates strong importance (typically bold). search engine
understand it better.

example:

<strong>Important text</strong>
Enter fullscreen mode Exit fullscreen mode

Output:Important text

3.:
It is used to make text italic.

Example:

<i>This is italic text</i>
Enter fullscreen mode Exit fullscreen mode

Output: This is italic text

4.<em>:
It is used to make text italic but search engine understand better.

Example:

<em>Emphasized text</em>
Enter fullscreen mode Exit fullscreen mode

Output: Emphasized text

5.<del>:
It is used to strike out the text.

Example:

<del>Strikeout text</del>
Enter fullscreen mode Exit fullscreen mode

Output:Strikeout text
**
6.<u>:**
It used to Underline the text.
Example:

<u>Underlined text</u>
Enter fullscreen mode Exit fullscreen mode

Output: Underlined text

7.<ins>:
The <ins> tag in HTML is used to mark inserted text in a document. It is
commonly rendered with an underline to visually indicate that the text
has been added or inserted.
Example:

 <ins>Inserted text</ins>
Enter fullscreen mode Exit fullscreen mode

output: Inserted text

8.<sub>:
It is used write Subscript text.
Example:

 H<sub>2</sub>O
Enter fullscreen mode Exit fullscreen mode

Output: H2O

9.<sup>:
It is used to Write Superscript text.
Example:

x<sup>2</sup>
Enter fullscreen mode Exit fullscreen mode

Output: x2

10.<mark>:
It is used to Highlights text with a yellow background.
Example:

<mark>Highlighted text</mark>
Enter fullscreen mode Exit fullscreen mode

Output: Highlighted text

11.<p>:
It is used Creates a paragraph.
Example:

 <p>This is a paragraph</p>
Enter fullscreen mode Exit fullscreen mode

Output:

This is a paragraph

12.<hr>:
It is used to display horizontal line.

Example:

<hr>
Enter fullscreen mode Exit fullscreen mode

Output:


13.<br>:
It is used to line break.
Example:

Line 1<br>Line 2

Enter fullscreen mode Exit fullscreen mode

Output:
Line 1
Line 2

14.<pre>:
It is used to print text as it is including space.

Example:

<pre>
Line 1
   Line 2
      Line 3
</pre>
Enter fullscreen mode Exit fullscreen mode

Output:

Line 1
   Line 2
      Line 3

15.<KBD>:
The <kbd> tag in HTML is used to represent keyboard input or text that the user should enter via a keyboard.

Example:

<KBD>CTRL+V</KBD>

Enter fullscreen mode Exit fullscreen mode

Output:CTRL+V

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more