HTML s 标签
htmlweb developmentfront end technology更新于 2026/1/28 14:36:17
HTML 中的 <s> 标签用于标记不再相关的文本。此标签在 HTML5 中被重新定义,用于显示不准确的文本。
让我们看一个实现 <s> 元素的示例 −
示例
<!DOCTYPE html> <html> <body> <h2>Exam Results</h2> <p><s>Result would be announced on 6th June.</s></p> <p>New date for results are 7th June.</p> </body> </html>
输出

在上面的例子中,我们设置了一个不再相关的文本 −
<s> Result would be announced on 6th June. </s>
使用 <s> 将会得到与上述输出相同的文本。
相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

