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

    Advantages and Disadvantages of Ring Network Topology

    Topic: Advantages and Disadvantages of Ring Network Topology alongwith detailed working of Ring topology What Do You Mean by Ring Topology? In Ring topology, each computer is connected to the next computer such that last computer is connected to the first. Every computer is connected to next computer in the ring. Each computer retransmits what it receives from the previous computer. Suppose, computer A needs to send data to computer D. Now the computer A sends data to computer B. As computer B is not the destination computer, so it will retransmit data to computer C. Finally, Computer C will transfer data to computer D, the destination computer. When a node sends a message, the message is processed by each computer in the ring. If a computer is not the destination node, it will pass the message to the next node, until the message arrives at its destination. Advantages of Ring Network Topology 1. It is relatively less expensive than a star topology network. 2. In a Rin

    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

    Explain Parts of CPU and its Working

    CENTRAL PROCESSING UNIT / CPU / Microprocessor / Processor Central processing unit is the brain of computer. It is also called CPU or processor . Processor is used to process data according to given instructions. It performs arithmetic and logical operations on data. Parts / Components of CPU / Processor on computergap.com It controls all activities of different parts of a computer . As brain in human body controls all other parts of body and takes decisions, CPU controls all other parts of the computer and their working. A CPU has three basic parts: Arithmetic Logic unit, Control unit and Registers. Parts of Microprocessor or Processor or CPU or Central Processing Unit computergap.com 1.    ARITHMETIC LOGIC UNIT (ALU) ALU performs data processing according to given instructions. All computations are done in this unit. ALU is the real place in computer where actual execution of instructions takes place. ALU may be further categorized into two sections acco