Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在HTML中将此文本设置为粗体?_Html - Fatal编程技术网

如何在HTML中将此文本设置为粗体?

如何在HTML中将此文本设置为粗体?,html,Html,如何在HTML中使文本加粗?没有CSS 我希望BOLD这个词是粗体的有很多方法,其中之一就是HTML解决方案 </p>I want the word <b>BOLD</b> to be <b>BOLD</b><p> 请注意元素。首先,如果HTML代码中出现语法错误,应该是: <p>I want the word BOLD to be BOLD</p> 然后,有两种方法可以在没有CSS的情况下使文本

如何在HTML中使文本加粗?没有CSS


我希望BOLD这个词是粗体的有很多方法,其中之一就是HTML解决方案

</p>I want the word <b>BOLD</b> to be <b>BOLD</b><p>

请注意元素。

首先,如果HTML代码中出现语法错误,应该是:

<p>I want the word BOLD to be BOLD</p>
然后,有两种方法可以在没有CSS的情况下使文本显示粗体:

<p>I want the word <strong>BOLD</strong> to be <b>BOLD</b></p>
我建议使用强元素,因为它更具语义

查看以下链接,您将了解更多信息:


哎呀,看,我把黑体字加粗了。只要右键点击它,然后检查元素,你就会知道怎么做。这个问题给人的印象是你根本没有研究过这个主题。这个网站是为实质性的编程问题,而不是可以用两分钟的谷歌搜索来解决的琐碎问题。
<p>I want the word <strong>BOLD</strong> to be <b>BOLD</b></p>