Easy To Learning
  • Login
  • Sign Up
  • Q&A
  • Home
  • Php Tutorial
  • MySql Tutorial
  • Object-Oriented Programming
  • Java Tutorial
  • HTML Tutorial
  • React JS Tutorials
  • Free Projects
  • Blogs & Articles
  • Others
    • About Us
    • Contact Us
HTML Formatting
Easy To Learning

Education Needs Complete Solution

Online Ask Question Question And Answer
  1. Home
  2. HTML Tutorials
  3. HTML Formatting

HTML Tutorial

Basic HTML Fundamentals

  • HTML Table Content
  • Introduction To HTML
  • What Is HTML
  • HTML Tags
  • HTML Formatting
  • HTML Heading
  • HTML Paragraph
  • HTML Anchor
  • HTML Image
  • HTML Table
  • HTML Lists
  • HTML Ordered List
  • HTML Unordered List
  • HTML Description List
  • HTML Form

HTML Tags

  • Marquee HTML
  • HTML Textarea
  • HTML Quotes
  • HTML Style
  • HTML Title Or HTML Doctype
  • HTML Div Tag
  • HTML Pre Tag
  • HTML Code Tag
  • HTML Label Tag
  • HTML Input Tag
  • HTML Button Tag
  • HTML Hr Tag
  • HTML Br Tag
  • HTML Script Tag
  • HTML NoScript Tag
  • HTML Bold Tag

HTML Formatting

HTML Formatting

HTML Formatting is a process of formatting text for better look and feel. There are many formatting tags in HTML. These tags are used to make text bold, italicized, or underlined. There are almost 12 options available that how text appears in HTML and XHTML.

HTML Formatting Tags

Bold Text

If you write anything within <b>............</b> element, is shown in bold letters.

Example:

<p> <b>Write Your First Paragraph in bold text.</b></p> 

Output: Write Your First Paragraph in bold text.

Italic Text

If you write anything within <i>............</i> element, is shown in italic letters.

Example:

<p> <i>Write Your First Paragraph in italic text.</i></p> 

Output: Write Your First Paragraph in italic text.

HTML Marked formatting

If you want to mark or highlight a text, you should write the content within <mark>.........</mark>.

Example:

<h2> I want to put a <mark> Mark</mark> on your face</h2> 

Output: I want to put a Mark on your face


Underlined Text

If you write anything within <u>.........</u> element, is shown in underlined text.

Example:

<p> <u>Write Your First Paragraph in underlined text.</u></p>  

Output: Write Your First Paragraph in underlined text.

Strike Text

Anything written within <strike>.......................</strike> element is displayed with strikethrough. It is a thin line which cross the statement.

Example:

<p> <strike>Write Your First Paragraph with strikethrough</strike>.</p> 

Output: Write Your First Paragraph with strikethrough.

Monospaced Font

If you want that each letter has the same width then you should write the content within <tt>.............</tt> element.

Note: We know that most of the fonts are known as variable-width fonts because different letters have different width. (for example: 'w' is wider than 'i'). Monospaced Font provides similar space among every letter.

Example:

<p>Hello <tt>Write Your First Paragraph in monospaced font.</tt></p> 

 Output: Hello Write Your First Paragraph in monospaced font.

Superscript Text

If you put the content within <sup>..............</sup> element, is shown in superscript ; means it is displayed half a character's height above the other characters.

See this example:

<p>Hello <sup>Write Your First Paragraph in superscript.</sup></p>  

Output: Hello Write Your First Paragraph in superscript.

Subscript Text

If you put the content within <sub>..............</sub> element, is shown in subscript ; means it is displayed half a character's height below the other characters.

Example:

<p>Hello <sub>Write Your First Paragraph in subscript.</sub></p> 

Output: Hello Write Your First Paragraph in subscript.

Deleted Text

Anything that puts within <del>..........</del> is displayed as deleted text.

Example:

<p>Hello <del>Delete your first paragraph.</del></p>  

Output: Hello Delete your first paragraph.

Inserted Text

Anything that puts within <ins>..........</ins> is displayed as inserted text.

Example:

<p> <del>Delete your first paragraph.</del><ins>Write another paragraph.</ins></p>  

Output:  Delete your first paragraph.Write another paragraph.

Larger Text

If you want to put your font size larger than the rest of the text then put the content within <big>.........</big>. It increase one font size larger than the previous one.

Example:

<p>Hello <big>Write the paragraph in larger font.</big></p>  

Output: Hello Write the paragraph in larger font.

Smaller Text

If you want to put your font size smaller than the rest of the text then put the content within <small>.........</small>tag. It reduces one font size than the previous one.

Example:

<p>Hello <small>Write the paragraph in smaller font.</small></p> 

Output: Hello Write the paragraph in smaller font.

Series: HTML Tutorials Hub
All Topics
Free Download Projects
Previous Chapter
Next Chapter

Ask a Question

Have a coding query or doubt? Ask here and get help from our community.

500 characters remaining
Submitting...
Free Download Projects
Join Telegram Group Join WhatsApp Group
Related Topics:
html format example text formatting tags in html with example html formatter notepad++ html bold tag html underline tag html beautifier sublime html text input css formatter

Member Sign In

Forgot?
Signing in...

Don't have an account? Register here

Create Free Account

Register Captcha
Registering...

Already have an account? Sign In

Ask a Question

500 characters remaining
Submitting...

About Easy To Learning

Easy To Learning is a comprehensive programming learning portal offering free, practical, developer-driven tutorials for PHP, Java, Python, Spring, MySQL, CSS, Bootstrap, CakePHP, and more.

Explore community-contributed questions and answers, and download ready-to-run source code projects.

Quick Links

  • Home
  • Questions & Answers
  • Download Projects
  • Blog & Articles
  • Member Login

Community

  • Telegram Group
  • WhatsApp Community
  • Ask a Question
  • Join as Member

Connect With Us

Stay updated with our newest programming tutorials and free open source projects.

© 2026 Easy To Learning. All Rights Reserved.