Formatting tags in HTML.
There are different types of formatting tags in HTML and these tags are.~
- <b>
- <strong>
- <i>
- <em>
- <mark>
- <small>
- <del>
- <ins>
- <sub>
- <sup>
HTML formatting tags specify how the text can appear in the browser like the text should appear bold, italic, small, large, etc.
Now let’s understand each tag one by one.
Firstly we will see a bold and strong tag.
let’s understood the bold tag.
Anything that appears within the <b>…</b> tag is displayed in bold.
The HTML <b> tag defines bold text, without any extra importance.
Then we have the strong tag.
The HTML strong <strong> tag defines the text with strong importance. The content inside is typically displayed in bold.
Then we have the HTML italic and emphasis elements.
Anything that appears within <i>….</i> element is displayed in italics.
The HTML <i>the the
element defines the specific part of the text in an alternate format. The content inside this tag is displayed in italic.
Usually, the italic tag is used to indicate a technical term, a phrase from another language, a thought, etc.
Next, we have the emphasized tag or element.
The HTML <em>
the element defines emphasized text. The content inside is typically displayed in italic.
there is not much difference between the emphasized and italic elements both have the same use but the difference is that the italic tag is used to highlight the technical terms.
Then we have the mark element.
In the webpage, if we want to highlight a particular text then we will use the mark element.
The HTML <mark>the the the
element defines the text that should be marked or highlighted:
Next, we have to delete and insert elements.
The HTML delete element defines the text that has been deleted from a document. Browsers will usually strike a line through deleted text:
The HTML <ins>
the element defines a text that has been inserted into a document. Browsers will usually underline inserted text.
The next tags are subscript and superscript tags
The HTML <sub>the the
element defines subscript text. Subscript text appears half a character below the normal line and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like H2O:
The HTML <sup>the the
element defines superscript text. Superscript text appears half a character above the normal line and is sometimes rendered in a smaller font. Superscript text can be used for footnotes, like WWW
Thanks for Visiting!!!
Comments
Post a Comment
If you have any doubt feel free to text me.