Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Deleted Element
Del Element

Delete is a formatting element used to delete some text from document.

Syntax

<del>Content</del>

Or

<tag><del>Content</del></tag>


You can apply delete element to any element and use any where within a HTML document.


Example

I am Deleted Text


Delete is a pair tag and output of delete element is horizontal line through text like you can see in above example.


Practice Task

Open notepad or any other text editor, follow the following points.


  • Create one paragraph
  • Assign text I am Paragraph to paragraph
  • Now delete text I am from paragraph

save file with name task.html or task.htm and then open it using any browser and see results.


Solution

I am Paragraph


Don't forget del is non empty element which means it always comes in pair.