Following are the list of formatting elements:
- Emphasized text
- Marked text
- Small text
- Deleted text
- Inserted text
- Subscripts
- Superscripts
1. Emphasized text– The syntax of the Emphasized text element is <em> which defines emphasized text.
Example:
- <!DOCTYPE html>
- <html>
- <head>
- <title>HTML formatting element sample</title>
- </head>
- <body>
- <p>Hi. This is Raj Kumar Beniwal Here (This is normal text) </p>
- <p>
- <em> Hi. This is Raj Kumar Beniwal Here (This is normal text) </em>
- </p>
- </body>
- </html>
Output:

2. Marked text– The syntax of marked text element is <mark> which defines marked or highlighted text.
Example:
- <!DOCTYPE html>
- <html>
- <head>
- <title>HTML formatting element sample</title>
- </head>
- <body>
- <h2>Hi. This is
- <mark>Raj Kumar</mark> Beniwal Here.
- </h2>
- </body>
- </html>

- <!DOCTYPE html>
- <html>
- <head>
- <title>HTML formatting element sample</title>
- </head>
- <body>
- <h1>Hi. This is
- <small>Raj Kumar</small> Beniwal Here.
- </h1>
- </body>
- </html>

- <!DOCTYPE html>
- <html>
- <head>
- <title>HTML formatting element sample</title>
- </head>
- <body>
- <h1>Hi. This is
- <del>Raj Kumar</del> Beniwal Here.
- </h1>
- </body>
- </html>

5. Inserted text– the syntax of inserted text element is <ins> which defines inserted or added text.
Example:
- <!DOCTYPE html>
- <html>
- <head>
- <title>HTML formatting element sample</title>
- </head>
- <body>
- <h1>Hi. This is Raj
- <ins>Kumar</ins> Beniwal here.
- </h1>
- </body>
Output:

6. Subscripts text– The syntax of the subscripts text element is <sub> which defines subscripted text.
Example:
- <!DOCTYPE html>
- <html>
- <head>
- <title>HTML formatting element sample</title>
- </head>
- <body>
- <h1>Hi. This is
- <sub>Raj Kumar</sub> Beniwal here.
- </h1>
- </body>
- </html>

7. Superscripts text– The syntax of superscript text element is (sup> which defines superscripted text.
Example:
- <!DOCTYPE html>
- <html>
- <head>
- <title>HTML formatting element sample</title>
- </head>
- <body>
- <h1>Hi. This is
- <sup>Raj Kumar</sup> Beniwal here.
- </h1>
- </body>
- </html>


Bhuvanesh MohankumarPosted Apr 30, 2016, 11:09 AM EDT
Good one...
Atul RawatPosted Mar 10, 2016, 3:59 AM EST
nice blog sir
Amit Kumar SinghPosted Mar 10, 2016, 1:55 AM EST
Nice Share .... :)
Kumaresh RajalingamPosted Mar 9, 2016, 3:39 PM EST
Nice share
Mohammed IbrahimPosted Mar 9, 2016, 4:22 AM EST
nice
Prashant VermaPosted Mar 8, 2016, 9:01 PM EST
Nice Article
Shailesh UkePosted Mar 8, 2016, 8:03 PM EST
Nice Article..
Debasis SahaTOP 100Posted Mar 8, 2016, 7:09 PM EST
Nice one...
Ranjit PowarPosted Mar 8, 2016, 6:31 PM EST
Helpful
Saillesh PawarPosted Mar 8, 2016, 6:10 PM EST
Nice Share Raj sir
Humayun Kabir MamunPosted Mar 8, 2016, 6:00 PM EST
Nice...