HTML i 标签
htmlweb developmentfront end technology更新于 2025/6/13 1:48:17
HTML 中的 <i> 标签用于将部分文本设置为斜体。仅当您没有以下语义元素时才应考虑使用 <i> 标签:<em>、<strong>、<mark> 等。
现在让我们看一个实现 <i> 标签的示例 −
示例
<!DOCTYPE html> <html> <head> <title>HTML i tag</title> </head> <body> <h1> Products </h1> <p>The products includes Clothing, Accessories and Furniture to be delivered by <i>FDX</i> couriers.</p> </body> </html>
输出

在上面的例子中,我们使用了 <p> 标签来添加内容 −
<p>The products includes Clothing, Accessories and Furniture to be delivered by <i>FDX</i> couriers.</p>
我们已经设置了上面的<i>标签 −
<i>FDX</i>
相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

