HTML – 6 del, ins, sub, sup elements
del, ins, sub, sup useful text elements
<del datetime="2024-05-05T00:00:00Z">This was deleted</del>
- represents a deletion from a document
- It is used to highlight text that has been deleted and showing changes in a document
- It is styled with a strikethrough line
- datetime attribute specifies when the element was removed
<p>This is the new <ins datetime="2024-05-05T00:00:00Z">inserted</ins> text that has been added.</p>
- It represents an addition to the documents.
- It is styled with an underline
- dateime attribute specifies when the element was inserted
<p>The chemical formula for water is H<sub>2</sub>O.</p>
- It represents inline text which is subscripted
- It appears below the normal line of the text
- It is often used for chemical formulas, mathematical expressions etc
<p>The chemical formula for water contains two hydrogen atoms and one oxygen atom<sup>1</sup>.</p>
- It represents a supscripted text
- It appears above the normal line of text
- It is often used or chemical formulas, mathematical expressions etc