English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML <del> tags are used to mark text that has been deleted from the document but retained to display the document change history. Traditionally, browsers will display the text found within <del> tags as strikethrough text. You can use a companion tag called <ins> to mark new text inserted into the document. This tag is also commonly referred to as the <del> element.
A text with deleted and newly inserted parts:
<!doctype html> <html> <head> <meta charset="UTF-8> <title>HTML5 Using <del> tags (Basic Tutorial Site oldtoolbag.com)/title> </head> <body> <h1>Heading 1</h1> <p><del cite="https://pt.oldtoolbag.com>This text has been deleted</del> but this text has not.<ins>red</ins></p> </body> </html>test to see ‹/›
In this HTML5In the document example, we created a <del> tag containing the text 'This text has been deleted' and set the deletion source to https://pt.oldtoolbag.com. Most browsers will display the text within <del> tags in strikethrough, but you can change it using CSS.
IEFirefoxOperaChromeSafari
Todos os navegadores populares suportam a etiqueta <del>.
O elemento <del> do HTML está dentro da etiqueta <body>.
Você também pode verificar <ins> Como a etiqueta marca o texto inserido primeiro.
A etiqueta <del> define o texto removido do documento.
A etiqueta <del> é usada para rastrear alterações no documento e destacar o conteúdo removido. A etiqueta <del> também pode ser usada em ferramentas de diferença para exibir código-fonte removido.
Dica:Usar <del> e <ins> juntos para descrever atualizações e correções no documento. Os navegadores geralmente adicionam uma linha de exclusão ao texto removido e uma linha sublinhada ao texto inserido.
Nenhum.
Atributo | Valor | Descrição |
---|---|---|
cite | URL | Define o URL de um documento que explica o motivo da remoção do texto. |
datetime | YYYY-MM-DDThh:mm:ssTZD | Define a data e hora em que o texto foi removido. |
Suporte ao <del> etiqueta Atributos globais do HTML.
Suporte ao <del> etiqueta Atributos de eventos do HTML.