如何用 HTML 添加粗体文字?


要显示粗体文本,请使用 <strong> 标签。HTML <strong> 标签用于强调重要文本。

示例

你可以尝试运行以下代码,在 HTML 中实现 <strong> 标签 −

<!Doctype html>
<html>
   <head>
      <title>HTML strong Tag</title>
   </head>
   <body>
      <p>This is an <strong>important</strong> text</p>
   </body>
</html>

更新日期:03-Mar-2020

1K+ 浏览

开启你的 职业生涯

完成课程,获得认证

开始
广告
© . All rights reserved.