English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML tag大全

Tag <del> do HTML

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.

Online Example

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.

browser compatibility

IEFirefoxOperaChromeSafari

Todos os navegadores populares suportam a etiqueta <del>.

Definição e instruções de uso da etiqueta

O elemento <del> do HTML está dentro da etiqueta <body>.

Dicas e Atuações

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.

HTML 4.01 e HTML5As diferenças entre

Nenhum.

Atributo

AtributoValorDescrição
citeURLDefine o URL de um documento que explica o motivo da remoção do texto.
datetimeYYYY-MM-DDThh:mm:ssTZDDefine a data e hora em que o texto foi removido.

Atributos globais

Suporte ao <del> etiqueta Atributos globais do HTML.

Atributos de eventos

Suporte ao <del> etiqueta Atributos de eventos do HTML.