codegurukool.com · Free coding tutorials & online compiler

Home › HTML Tutorial › HTML formatting

HTML formatting

Elements that change how text looks and means.

Use strong and em for meaning, and mark, small, del, ins, sub, sup for the rest.

Example code

<p><strong>Important</strong>, <em>stressed</em>, <mark>marked</mark>, <small>small</small>, <del>old</del> <ins>new</ins>, H<sub>2</sub>O, x<sup>2</sup></p>'

Run this code in the online editor

← HTML stylesQuotations and citations →