The del tag in HTML
- 24-07-2022
- Trung Minh
- 0 Comments
The <del> tag defines a text to be deleted from a document.
Using
For example, how to use the <del> tag.
<!DOCTYPE html> <html> <head> <title>Học lập trình miễn phí tại web888.vn</title> <meta charset="utf-8"> </head> <body> <h1>Học lập trình miễn phí tại web888.vn</h1> <p>My favorite color is <del>blue</del> <ins>red</ins>!</p> </body> </html>
Attribute of <del> . tag
- cite – specifies the url of a document that explains why the text was removed.
- datetime – specifies the date and time the text in the del tag pair will be deleted.