HTML Text Formatting | html text tag
HTMLcontainsseveralelementsfordefiningtextwithaspecialmeaning.ExampleThistextisboldThistextisitalicThisissubscriptandsuperscriptTryitYourself»[1]HTMLFormattingElementsFormattingelementsweredesignedtodisplayspecialtypesoftext:-Boldtext-Importanttext-Italictext-Emphasizedtext-Markedtext-Smallertext-Deletedtext-Insertedtext-Subscripttext-SuperscripttextHTMLandEle...
HTML contains several elements for defining text with a special meaning.
ExampleThis text is bold
This text is italic
This is subscript and superscript
Try it Yourself »[1] HTML Formatting ElementsFormatting elements were designed to display special types of text:
<b> - Bold text <strong> - Important text <i> - Italic text <em> - Emphasized text <mark> - Marked text <small> - Smaller text <del> - Deleted text <ins> - Inserted text <sub> - Subscript text <sup> - Superscript text HTML <b> and <strong> ElementsThe HTML <b> element defines bold text, without any extra importance.
The HTML <strong> element defines text with strong importance. The content inside is typically displayed in bold.
HTML <i> and <em> ElementsThe HTML <i> element defines a part of text in an alternate voice or mood. ...