Skip to content
This repository has been archived by the owner on Oct 16, 2019. It is now read-only.

"Applied Visual Design - Use the del Tag to Strikethrough Text" is using the wrong element semantically #123

Closed
ZebulanStanphill opened this issue May 31, 2018 · 1 comment

Comments

@ZebulanStanphill
Copy link

https://learn.freecodecamp.org/responsive-web-design/applied-visual-design/use-the-del-tag-to-strikethrough-text/

This lesson teaches that the <del> element represents "a section of text is no longer valid". However, according to the HTML spec, that is the purpose of the <s> element. The <del> element is supposed to be used to represent text that has been deleted from a document during an edit (similar to the <ins> element which represents content that has been added in by an edit).

See also:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s
https://www.w3.org/TR/html52/edits.html#the-del-element
https://www.w3.org/TR/html53/edits.html#the-del-element
https://www.w3.org/TR/html52/textlevel-semantics.html#the-s-element
https://www.w3.org/TR/html53/textlevel-semantics.html#the-s-element
https://html.spec.whatwg.org/multipage/edits.html#the-del-element
https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-s-element

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants