<del>: The Deleted Text element - HTML: HyperText Markup Language | MDN (2024)

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

The <del> HTML element represents a range of text that has been deleted from a document. This can be used when rendering "track changes" or source code diff information, for example. The <ins> element can be used for the opposite purpose: to indicate text that has been added to the document.

Try it

This element is often (but need not be) rendered by applying a strike-through style to the text.

Attributes

This element's attributes include the global attributes.

cite

A URI for a resource that explains the change (for example, meeting minutes).

datetime

This attribute indicates the time and date of the change and must be a valid date string with an optional time. If the value cannot be parsed as a date with an optional time string, the element does not have an associated timestamp. For the format of the string without a time, see Date strings. The format of the string if it includes both date and time is covered in Local date and time strings.

Accessibility

The presence of the del element is not announced by most screen reading technology in its default configuration. It can be made to be announced by using the CSS content property, along with the ::before and ::after pseudo-elements.

See Also
del.

css

del::before,del::after { clip-path: inset(100%); clip: rect(1px, 1px, 1px, 1px); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px;}del::before { content: " [deletion start] ";}del::after { content: " [deletion end] ";}

Some people who use screen readers deliberately disable announcing content that creates extra verbosity. Because of this, it is important to not abuse this technique and only apply it in situations where not knowing content has been deleted would adversely affect understanding.

Examples

html

<p><del>This text has been deleted</del>, here is the rest of the paragraph.</p><del><p>This paragraph has been deleted.</p></del>

Result

Technical summary

Content categories Phrasing content, flow content.
Permitted content Transparent.
Tag omission None, both the starting and ending tag are mandatory.
Permitted parents Any element that accepts phrasing content.
Implicit ARIA role deletion
Permitted ARIA roles Any
DOM interface HTMLModElement

Specifications

Specification
HTML Standard
# the-del-element

Browser compatibility

BCD tables only load in the browser

See also

  • <ins> element for insertions into a text
  • <s> element for strikethrough separate from representing deletion of text
<del>: The Deleted Text element - HTML: HyperText Markup Language | MDN (2024)
Top Articles
Zucchetto | Catholic Clergy, Papal Headgear, Skullcap
How to Charge Your Electric Scooter Properly | Mearth Electric Scooter
Craigslist Livingston Montana
Pangphip Application
Atvs For Sale By Owner Craigslist
Explore Tarot: Your Ultimate Tarot Cheat Sheet for Beginners
Flixtor The Meg
Hertz Car Rental Partnership | Uber
27 Places With The Absolute Best Pizza In NYC
Tv Schedule Today No Cable
House Share: What we learned living with strangers
Globe Position Fault Litter Robot
Craftology East Peoria Il
Images of CGC-graded Comic Books Now Available Using the CGC Certification Verification Tool
Beebe Portal Athena
Driving Directions To Bed Bath & Beyond
Violent Night Showtimes Near Amc Fashion Valley 18
Amazing deals for Abercrombie & Fitch Co. on Goodshop!
The Ultimate Guide to Extras Casting: Everything You Need to Know - MyCastingFile
Diakimeko Leaks
Between Friends Comic Strip Today
Best Boston Pizza Places
FAQ's - KidCheck
UCLA Study Abroad | International Education Office
12657 Uline Way Kenosha Wi
Wbap Iheart
Ordensfrau: Der Tod ist die Geburt in ein Leben bei Gott
101 Lewman Way Jeffersonville In
Www.1Tamilmv.con
Obsidian Guard's Skullsplitter
Tokioof
Christmas Days Away
Tire Pro Candler
Xfinity Outage Map Lacey Wa
Vistatech Quadcopter Drone With Camera Reviews
Wake County Court Records | NorthCarolinaCourtRecords.us
Bratislava | Location, Map, History, Culture, & Facts
Of An Age Showtimes Near Alamo Drafthouse Sloans Lake
Tal 3L Zeus Replacement Lid
Games R Us Dallas
Planet Fitness Santa Clarita Photos
Сталь aisi 310s российский аналог
Homeloanserv Account Login
Dwc Qme Database
National Weather Service Richmond Va
Automatic Vehicle Accident Detection and Messageing System – IJERT
Freightliner Cascadia Clutch Replacement Cost
Acuity Eye Group - La Quinta Photos
Dolce Luna Italian Restaurant & Pizzeria
Product Test Drive: Garnier BB Cream vs. Garnier BB Cream For Combo/Oily Skin
Urban Airship Acquires Accengage, Extending Its Worldwide Leadership With Unmatched Presence Across Europe
Emmi-Sellers
Latest Posts
Article information

Author: Horacio Brakus JD

Last Updated:

Views: 6075

Rating: 4 / 5 (71 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Horacio Brakus JD

Birthday: 1999-08-21

Address: Apt. 524 43384 Minnie Prairie, South Edda, MA 62804

Phone: +5931039998219

Job: Sales Strategist

Hobby: Sculling, Kitesurfing, Orienteering, Painting, Computer programming, Creative writing, Scuba diving

Introduction: My name is Horacio Brakus JD, I am a lively, splendid, jolly, vivacious, vast, cheerful, agreeable person who loves writing and wants to share my knowledge and understanding with you.