Skip to content
  • Quizes
  • QStack
  • Blog
  • pinterest
  • instagram
  • twitter
  • linkedin
  • facebook
W3 Coding Schools
  • Home
  • HTML
    • HTML Introduction
    • HTML Editors
    • Fundamentals of HTML
    • Elements of HTML
    • HTML Attributes
    • HTML Headings
    • HTML Paragraphs
    • HTML Style Attribute
    • HTML Text Formatting
    • HTML Phrase Tags
    • HTML Comments
    • HTML with CSS
    • HTML Links
    • HTML Images
    • HTML Tables
    • HTML Lists
    • HTML Blocks
    • HTML Class Attribute
    • HTML Id Attribute
    • HTML Iframes
    • HTML JavaScript
    • HTML File Paths
    • HTML Head
    • Computer Code Elements
    • HTML Entities
    • HTML Charset
    • HTML URL Encode
    • HTML and XHTML
    • HTML Layouts
    • HTML Forms
    • HTML Form Elements
    • HTML Form Input Types
    • HTML Input Attributes
    • HTML5 Introduction
    • HTML5 New Elements
    • Semantic Elements
    • HTML5 Migration
    • Style Guide
    • HTML Canvas
  • CSS
    • CSS Introduction
    • CSS Syntax and CSS Comments
    • CSS Selectors
    • How to add CSS to a Webpage
    • CSS Color Basics
    • CSS Background Properties
    • CSS Border Properties
    • CSS Margin and Padding Properties
    • CSS Height and Width properties
    • CSS Box Model
    • CSS Outline Properties
    • CSS Fonts
    • CSS Text
    • How To Add Icons
    • CSS Links
    • CSS List-Style
    • CSS Tables
    • CSS Display Property
    • CSS Position Property
    • CSS Overflow Property
    • CSS max-width Property
    • CSS Float and Clear Properties
    • CSS Alignment
    • CSS inline-block
    • CSS Combinators
    • CSS Pseudo Classes
    • CSS Pseudo Elements
    • CSS Opacity
    • CSS Navigation Bar
    • CSS Dropdowns
    • CSS Image Gallery
    • CSS Image Sprites
    • CSS Attribute Selector
    • CSS Styling Forms
    • CSS Counters
    • CSS Units
    • CSS Specificity
    • CSS Website Layout
    • CSS Rounded Corners
    • CSS Border Image Property
    • CSS Multiple Backgrounds
    • CSS Gradient
    • CSS Shadow Effects
    • CSS Text Effects
    • CSS Web Fonts
    • CSS 2D Transforms
  • Bootstrap 4
    • Bootstrap 4 – Introduction
    • Bootstrap versions
    • Bootstrap 4 Layout
    • Bootstrap 3 Vs Bootstrap 4
    • Bootstrap 4 Grid System
    • Bootstrap 4 Typography
    • Bootstrap 4 Colors
    • Bootstrap 4 Images
    • Bootstrap 4 Tables
    • Bootstrap 4 Jumbotron
    • Bootstrap 4 Figures
    • Bootstrap 4 Alerts
    • Bootstrap 4 Buttons
    • Bootstrap 4 Button Group
    • Bootstrap 4 Badges
    • Bootstrap 4 Spinners
    • Bootstrap 4 Progress Bars
    • Bootstrap 4 Pagination
    • Bootstrap 4 Breadcrumbs
    • Bootstrap 4 List Groups
    • Bootstrap 4 Cards
  • jQuery
    • jQuery Introduction
    • jQuery Download
    • jQuery Selectors
    • jQuery Event Methods
    • jQuery Hide/Show Effects
    • jQuery Fading Effects
    • jQuery Sliding Effects
    • jQuery Animation
    • jQuery Stop and Callback
    • jQuery Get and Set Methods
    • jQuery Chaining
    • jQuery Add
    • jQuery Remove
    • jQuery CSS Classes
    • jQuery Style Properties
    • jQuery Dimensions
    • jQuery Traversing
    • jQuery Ancestors
    • jQuery Descendants
    • jQuery Siblings
  • Javascript
    • JS Introduction
    • JS Where to Put
    • JavaScript Syntax
    • JavaScript Comments
    • JavaScript Variables
    • JavaScript Data Types
    • JavaScript Operators
    • JavaScript Events
    • JavaScript Strings
    • JavaScript Numbers
  • php
    • PHP Introduction
    • Install PHP
    • PHP Syntax and Comments
    • PHP Variables
    • PHP Constants
    • PHP Echo and Print
    • PHP Data Types
    • PHP Strings
    • PHP Operators
    • PHP $ and $$ Variables
  • WordPress
    • WordPress Introduction
    • WordPress History
    • WordPress.com vs WordPress.org
    • How to Install WordPress
    • WordPress Dashboard
    • How to Create a WordPress Website
    • WordPress Posts
    • WordPress Pages
    • WordPress Posts vs Pages
    • WordPress Categories
  • SEO
    • SEO Introduction
    • SEO Tactics and Methods
    • SEO Relevant Filenames
    • SEO Domain Name
    • Website Design and SEO
    • SEO Keywords
    • Meta Tags Optimization
    • Title Tag Optimization
    • Anchor Text Optimization
    • Content Optimization
  • Android
    • Android Introduction
    • Android History and Versions
    • Android Architecture
    • Android Environment Setup
    • Android Application Components
    • Hello World Application
    • Android Activities
  • iOS
    • iOS Introduction
    • iOS Environment Setup
    • iOS Architecture

You Are Here

  • Home
  • Learn HTML
  • HTML Text Formatting

Topics

  • HTML Introduction
  • HTML Editors
  • Fundamentals of HTML
  • HTML Elements
  • HTML Attributes
  • HTML Headings
  • HTML Paragraphs
  • HTML Style Attribute
  • HTML Text Formatting
  • HTML Phrase Tags
  • HTML Comments
  • HTML with CSS
  • HTML Links
  • HTML Images
  • HTML Tables
  • HTML Lists
  • HTML Blocks
  • HTML Class Attribute
  • Id Attribute for HTML
  • HTML Iframes
  • HTML JavaScript
  • HTML File Paths
  • HTML Head
  • HTML Computer Code Elements
  • HTML Entities
  • HTML Charset
  • HTML URL Encode
  • HTML and XHTML
  • HTML Layouts
  • HTML Forms
  • HTML Form Elements
  • HTML Form Input Types
  • HTML Input Attributes
  • HTML5 Introduction
  • HTML5 New Elements
  • Semantic Elements in HTML5
  • HTML5 Migration
  • Style Guide
  • HTML Canvas
  • HTML SVG

Oct Champs & Prizes

  • 1. Pooja Ladda
  • 2. Manjali Kuldharan
  • 3. Pranali Surawar
  • 4. Anjali Kulkarni
  • 5. Vishal Deshmukh

Recent Posts

  • HTML Media
  • jQuery Siblings
  • Bootstrap 4 Cards
  • jQuery Descendants
  • jQuery Ancestors

HTML Text Formatting

Formatting in HTML is a process of formatting text for a better look and feel, without using CSS.
HTML provides some tags that you can use to make some text on your web pages to appear differently than normal text. There are many formatting tags in HTML that are used to make text bold, italic or underlined etc.

HTML formatting tags are divided into two categories:

  • Physical tag: These tags give a visual appearance to the text
  • Logical tag: These tags give add some logical or semantic value to the text

Bold Text:

The <b> tags is a physical tag, which is used to bold the text written between <b>…</b>.
It does not add any extra importance.

Example:

<p> <b> Flourish Software: </b> Spreading Optimized Solutions </p>
Try it

Strong Text:

The <strong> tag is a logical tag, which tells the browser that the text is important.
It adds semantic importance to the text.

Example:

<p> <strong> Flourish Software: </strong> Spreading Optimized Solutions </p>
Try it

Difference between <strong> and <b> tag:

The <b> and <i> element types show the text in bold.
The difference is that the content in the <b>…</b> is bold for style purpose however the content in the <strong>…</strong> looks bold and has the emphasis.

Italic Text:

The <i> tag is a physical tag that is used to make the text italic.
It does not add any extra importance to the text.

Example:

<p> Flourish Software: <i> Spreading Optimized Solutions </i> </p>
Try it

Emphasized Text:

The <em> tag is a logical tag that is used to emphasize the text.
The content written in the <em>…..</em> tags is displayed in italic.
The <em> tag adds semantic importance to the text.

Example:

<p> Flourish Software: <em> Spreading Optimized Solutions </em> </p>
Try it

Difference between <em> tag and <i> tag:

Some people may get confused at seeing multiple elements that produce similar results.
<em> and <i> are common example of this.
By default both produce the same result, but its semantic meaning is different.
The difference is, <em> is used when you want to add more stress on a word or sentence and <i> is used when you don’t need to any stress on a word or phrase, but want it to be different from the words.

Underlined Text:

The <u> tag in HTML stands for underline and it’s used to underline the text.
The content written within <u>………</u> element, is shown in underlined text.

Example:

<p> Flourish Software: <u> Spreading Optimized Solutions </u> </p>
Try it

Subscript Text:

The <sub> tag is used to place subscripted text onto your websites.
The text which is written inside <sub>…</sub> appears half a character below the normal line.
The subscripted text can be used to write chemical formulas.

Example:

<p> The HTML sub tag is used for <sub> subscript text </sub> </p>
<p> O <sub> 2 </sub> – Oxygen
<p> CO <sub> 2 </sub> – Carbon Dioxide
Try it

Superscript Text:

The <sup> tag is used to place superscripted text onto your websites.
The text which is written inside <sup>…</sup> appears half a character above the normal line.
The superscript text can be used to write footnotes and mathematical expressions.

Example:

<p> The HTML sup tag is used for <sup> superscript text </sup> </p>.
4 <sup> 2 </sup> = 16
10 <sup> x </sup>
Try it

Inserted Text:

The <ins> element in HTML is used to identify text, that has been inserted into a document.
Many times it is used with an <del> element which identifies deleted text replaced by text contained in the <ins> element.

Example:

<p> HTML stands for <del> Hypertax </del> <ins> Hypertext </ins> Markup Language․ </p>
Try it

Deleted Text:

The <del> tag in HTML is used to mark a part of the text which has been deleted from the document.
The deleted text is displayed as strikethrough text by the web browsers.

Example:

<p> HTML stands for <del> Hypertax </del> <ins> Hypertext </ins> Markup Language. </p>
Try it

Smaller Text:

The <small> element in HTML is used to set small font size.
The text written inside< small>…</small> is displayed one size smaller than the surrounding text.

Example:

<p> Flourish Software: Spreading Optimized <small> Solutions </small> </p>
Try it

Larger Text:

The <big> tag in HTML is used to increase the size of the selected text.
The text written inside< big>…</big> is displayed one size larger than the surrounding text.

Example:

<p> Flourish Software: Spreading Optimized <big> Solutions </big> </p>
Try it
Note: You can also give more effects to text using CSS Text Effects.

Post navigation

HTML Style Attribute
HTML Phrase Tags

Ask a Question Cancel reply

Your email address will not be published. Required fields are marked *

W3 CODING SCHOOLS © Copyright 2019-20
Privacy policy   Terms of use

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok