To provide a better look and feel, the text/paragraph need to be formatted; for example, making text bold, underline, or italic.
Following are the major options of formatting the text in HTML −
<p><b>Write the Paragraph in bold text.</b></p>
<!DOCTYPE html> <html> <body> <p>This paragraph is normal.</p> <p><b>This paragraph is bold.</b></p> </body> </html>
This paragraph is normal.
This paragraph is bold.
<p><i>Write the Paragraph in italic text.</i></p>
<!DOCTYPE html> <html> <body> <p>Write the <i>Paragraph</i> in italic text.</p> </body> </html>
Write the Paragraph in italic text.
<p><u>Write the Paragraph in underlined text.</u></p>
<!DOCTYPE html> <html> <body> <p>My Paragraph <u>underlined</u>.</p> </body> </html>
My Paragraph underlined.
<p> <strike> Write the Paragraph with strikethrough </strike></p>
<!DOCTYPE html> <html> <body> <p>This Paragraph <strike> scratched</strike> out!</p> <p>This Paragraph no scratched</p> </body> </html>
This Paragraph scratched out!
This Paragraph no scratched
<p> <sub> Write the Paragraph in subscript </sub> </p>
<!DOCTYPE html> <html> <body> <p>Testing <sub>subscript text</sub></p> <p>Testing <sup>superscript text</sup></p> </body> </html>
Testing subscript text
Testing superscript text
<p> <sup> Write the Paragraph in superscript</sup> </p>
<!DOCTYPE html> <html> <body> <p>Testing <sub>subscript text</sub></p> <p>Testing <sup>superscript text</sup></p> </body> </html>
Testing subscript text
Testing superscript text
<p> <del> Delete the paragraph </del> <ins>insert paragraph</ins> </p>
<!DOCTYPE html> <html> <body> <p> My favorite color is <del> MediumSeaGreen</del> <ins> red</ins> !</p> </body> </html>
My favorite color is MediumSeaGreen red!
<p> <del> Delete the second paragraph </del> </p>
<!DOCTYPE html> <html> <body> <p>This is my favorite color <del>Brown</del> <ins>Crimson</ins>!</p> </body> </html>
This is my favorite color Brown Crimson!
<p> <small> Write the first paragraph in smaller font </small> </p>
<!DOCTYPE html> <html> <body> <p>Htmltpoint.com - is a dedicated website to provide quality online education in the domains of Computer Science, Information Technology, Programming Languages,</p> <p><small>Copyright 2017-2018 by Refsnes Data.</small></p> </body> </html>
Htmltpoint.com - is a dedicated website to provide quality online education in the domains of Computer Science, Information Technology, Programming Languages,
Copyright 2017-2018 by Refsnes Data.