📜  HTML<del>标签

📅  最后修改于: 2021-08-29 12:35:38             🧑  作者: Mango

HTML 中的 标记代表删除,用于标记已从文档中删除的部分文本。尽管可以使用 CSS text-decoration 属性更改此属性,但已删除的文本会被 Web 浏览器呈现为删除线文本。 标签需要一个开始和结束标签。

属性: 标签包含两个属性,如下所示:

  • cite 用于指定文档或消息的 URL,表示删除文本的原因。
  • datetime 用于指定删除文本的日期和时间。

句法:

 Contents... 

示例 1:以下示例说明 HTML 中的 元素:

html


    
        

GeeksforGeeks

        

HTML del Tag

                  

GeeksforGeeks is a mathematical            science portal

        


html


    
        

GeeksforGeeks

        

HTML del Tag

                  

GeeksforGeeks is a mathematical            science portal

        


输出:

示例 2:此示例使用带有 datetime 属性的 标记。

html



    
        

GeeksforGeeks

        

HTML del Tag

                  

GeeksforGeeks is a mathematical            science portal

                            

输出:

支持的浏览器:

  • 谷歌浏览器
  • IE浏览器
  • 火狐
  • 歌剧
  • 苹果浏览器