我想用 HTML 在 web 中做一些粗體顯示的文本。
<p>HELLO</p>
我所需的輸出是:-你好。
uj5u.com熱心網友回復:
您可以通過多種方式加粗文本。方式一:
<strong>This text is bold</strong>
方式二:
<p>Your username for your new computer is <b>JohnAppleseed</b></p>
方式3(使用CSS):
p.thick {
font-weight: bold;
}
p.thicker {
font-weight: 900;
}
<p class="thick">This is a paragraph.</p>
<p class="thicker">This is a paragraph.</p>
您可以關注以了解更多資訊W3School TutorialPoint 的資源
uj5u.com熱心網友回復:
strong是執行此操作的 HTML 標記。參考W3Schools。
<strong>HELLO</strong>
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/362870.html
標籤:html
下一篇:從多個類中獲取值
