Skip to main content

Different Types of Text Formatting Tags in HTML

There are many Text formatting tags available in HTML. You can format your text as:
  • Bold Text
  • Italic Text
  • Underline Text
  • Superscript Text
  • Subscript Text



    Let us discuss these formatting tags one by one with example html source code and the output in web browser.

    1. Bold Text

    <b> tag is used for formatting the text as bold text. You place the text within <b> and </b> tags to make it bold.

    2. Italic Text

    <i> tag is used for formatting the text as italic text. You place the text within <i> and </i> tags to make it italic.

    3. Underline Text


    <u> tag is used for formatting the text as underline text. You place the text within <u> and </u> tags to make it underline.

    4. Superscript Text


    <sup> tag is used for formatting the text as superscript text. You place the text within <sup> and </sup> tags to make it superscript.

    5. Subscript Text


    <sub> tag is used for formatting the text as bold text. You place the text within <sub> and </sub> tags to make it subscript.





    HTML Formatting Tags Source Code Examples

    HTML Formatting Tags Output in web browser
    <b>Bold Text</b>
    <i>Italic Text</i>
    <u>Underline Text</u>
    Superscript Example X Squared= X<sup>2</sup>
    Subscript Example X base 2= X<sub>2</sub>

    Bold Text
    Italic Text
    Underline Text
    Superscript Example X Squared= X2
    Superscript Example X base 2= X2

    Comments

    Popular posts from this blog

    Uses Of Computer In Education Field

    Computer can be used in education in the following ways:  Computers In Teaching and Learning Process ( Computer Aided Learning - CAL ) Computers are being used actively in educational institutes to improve the learning process. Teachers can use audio video aids through computer to prepare lesson plans. They can use Microsoft Power Point to prepare electronic presentations about their lectures. These electronic presentations will be displayed on multimedia projectors in class rooms. This will be interesting and easy to learn for students. Multimedia presentations are easy to deliver for teachers too, These presentations save a lot of effort and time. Moreover multimedia presentations are interesting to view and hear sound and visual  effects. Computers will be helpful for:                        Instructing the students using PowerPoint slides, Word documents or Web pages and using hyperlinks for better concept clarity.      2.  Helps in improving pronunciation of

    Explain different types of storage devices

    Topic: Explain different types of storage devices in Computer systems Storage Devices Storage devices are used to store data and instructions permanently. Storage devices are also called secondary storage devices / backing storage devices / external storage devices or auxiliary storage devices. Examples of storage devices include Hard Disk, CD and DVD etc. Why Secondary Storage Devices are Used? Secondary storage devices are used because: Primary memory(RAM) is volatile and temporary. When computer is switched off, all data in ram is erased. Storage devices can store large amounts of data and instructions permanently whereas Primary memory has less capacity of storing data. Types Of Storage Devices There are three main types of storage devices:  Magnetic Tape   Magnetic Disk   Optical Disk   Flash Memory storage devices 1. Magnetic Tape Magnetic tape is the oldest storage device. It is made of plastic coated with magnetic material. Data is stored on mag

    Electricity Bill Calculator Formulas in Excel

    Today, we will discuss How to create an Electricity Bill Calculator Worksheet by using Electricity Bill Calculator Formulas in Excel . The following formulas will be used in Electricity Bill Calculator Worksheet: Q: Prepare a worksheet according to the following instructions: Create a worksheet in MS Excel according to the requirements Enter sample data of Electricity units consumed by customers in a city Apply formula to calculate Units Consumed Apply formula to calculate Electricity Charges Apply formula to calculate Surcharge Apply formula to calculate Bill Payable Note: Every formula will start from  =  Units Consumed Formula=D5-C5 Electricity Charges Formula=IF(E5>200, E5*15,IF(E5>100, 1000+(E5-100)*12, E5*10)) SURCHARGE FORMULA = IF(F5>5000, F5*5%,IF(F5>1000, F5*3%, 0)) BILL PAYABLE FORMULA = SUM(F5:G5) Download Excel Electricity Bill Calculation Worksheet Free  Image for Electricity Bill Calculator Formulas in Excel Softw