Lecture 5: Mastering HTML Text Formatting Tags: A Beginner's Guide to Subscript, Superscript, Line Break, and Non-Breaking Space

A Beginner's Guide to Subscript, Superscript, Line Break, and Non-Breaking Space:


A Beginner's Guide to Subscript, Superscript, Line Break, and Non-Breaking Space


To create subscript text in HTML, you can use the <sub> tag. The <sub> tag is used to display text in a subscript format, typically used for mathematical or chemical formulas or for displaying footnotes. Here's an example of how to use it:

using subscript tage

The code above will display "H₂O" where the "2" is displayed in subscript format.

To create a line break in HTML, you can use the <br> tag. The <br> tag is a self-closing tag, meaning it doesn't require a closing tag. It is used to insert a single line break within a paragraph or other block-level element. Here's an example of how to use it:

using br tage in html


The code above will display:

br tage disply


Post a Comment

Previous Next

نموذج الاتصال