HTML Formatting Elements: HTML Formatting gives the text better looks in a HTML page. A HTML learner needs to display paragraph or text in a different looks. HTML Formatting is optimized for the best possible output. In HTML use some Formatting tags for format text, these are Bold, Italic, Underline, Strike, SuperScript, SubScript, Inserted, Deleted, Large, Smaller and Grouping.
Bold Text:
HTML <b> tag is defined the Bold test. Make a text bold use <b> tag before the text and </b> end the text. For example:
<!DOCTYPE html> <html> <head> <title>Bold Text</title> </head> <body> <p> HTML stands for <b>Hyper Text Markup Language.</b> </p> </body> </html>
Italic Text:
HTML <i> tag is defined the Italic test. Make a text italic use <i> tag before the text and </i> end the text. For example:
<!DOCTYPE html> <html> <head> <title>Italic Text</title> </head> <body> <p> HTML is <i>the building block for web pages.</i> </p> </body> </html>
Underline Text:
HTML <u> tag is defined the Underline test. Make a text underline use <u> tag before the text and </u> end the text. For example:
<!DOCTYPE html> <html> <head> <title>Underline Text</title> </head> <body> <p> HTML is the most widely used for <u>develop web pages</u>. </p> </body> </html>
Strike Text:
In HTML <strike> tag is defined for Strike a text. Strike tag creates line middle on the text or elements. Make a text strike element use <strike> tag before the text and </strike> end the text. For example:
<!DOCTYPE html> <html> <head> <title>Strike Text</title> </head> <body> <p> Purchase HTML app now only <strike> Rs 100 </strike> Rs 50. </p> </body> </html>
SuperScript Text:
In HTML <sup> tag is defined for Super Script a text. It specify something upper a text that’s like x2. Make a text Super Script use <sup> tag before the text and </sup> end the text. For example:
<!DOCTYPE html> <html> <head> <title>Super Script Text: </title> </head> <body> <p> Find the x-intercepts of y = 4x<sup>2</sup> – 2x – 5 </p> </body> </html>
SubScript Text:
In HTML <sub> tag is defined for Sub Script a text. It specify something upper a text that’s like x2. Make a text Sub Script use <sub> tag before the text and </sub> end the text. For example:
<!DOCTYPE html> <html> <head> <title>SubScript Text</title> </head> <body> <p> Nitrogen (N<sub>2</sub>) constitutes 78.03% of the air </p> </body> </html>
Inserted Text:
In HTML <ins> tag is defined for Insert a text in a line or paragraph. The insert is start with <ins> tag before the text and </ins> end the text. For example:
<!DOCTYPE html> <html> <head> <title>Inserted Text</title> </head> <body> <p> Please give me a <ins>glass</ins> of water. </p> </body> </html>
Deleted Text:
In HTML <ins> tag is defined for Delete a text in a line or paragraph. The insert is start with <ins> tag before the text and </ins> end the text. For example:
<!DOCTYPE html> <html> <head> <title>Deleted Text</title> </head> <body> <p> Please give me a cup of <del>cold</del> tea. </p> </body> </html>
Smaller Text:
In HTML <small> tag is defined for small a text in a line or paragraph. HTML <small> tag is small the text from the default size of the text. The small is start with <small> tag before the text and </small> end the text. For example:
<!DOCTYPE html> <html> <head> <title>Smaller Text</title> </head> <body> <p> It is a <small>smaller text</small>. </p> </body> </html>