HTML strike 标签

htmlweb developmentfront end technology更新于 2025/3/20 8:44:17

HTML 中的 <strike> 标签用于设置删除线文本。

注意 - HTML5 不支持 <strike> 标签

现在让我们看一个在 HTML 中实现 <strike> 标签的示例 −

示例

<!DOCTYPE html>
<html>
<body>
<h2>Product Launch</h2>
   <p>The product is in <strike>beta testing</strike> launch mode.</p>
</body>
</html>

输出

在上面的例子中,我们使用 <strike> 元素设置了删除文本 −

<p>The product is in <strike>beta testing</strike> launch mode.</p>

相关文章


有用资源