{"id":68,"date":"2022-04-18T21:26:32","date_gmt":"2022-04-18T21:26:32","guid":{"rendered":"https:\/\/gyanipandit.com\/programming\/?p=68"},"modified":"2022-04-18T21:26:32","modified_gmt":"2022-04-18T21:26:32","slug":"html-bold-tag","status":"publish","type":"post","link":"https:\/\/gyanipandit.com\/programming\/html-bold-tag\/","title":{"rendered":"HTML Bold Tag"},"content":{"rendered":"<p style=\"text-align: center;\"><strong>Tags for making the text bold<\/strong><\/p>\n<p>Sometimes, you might want some text on your web page to be displayed in bold, so as to grab user attention, or for describing this text as important. Obviously, you need to use some tag to achieve this. We have b tag for making the text bold. The text between the &lt;b&gt; and &lt;\/b&gt; tag becomes bold.<\/p>\n<p>Alternatively, we can also use the strong tag to do so, but it defines the text as having\u00a0 some strong importance. Refer to the below example for understanding the use of both tags. The content between &lt;strong&gt; and &lt;\/strong&gt; will be of strong importance. So it will be shown in a bold format.<\/p>\n<p><strong>&lt;!DOCTYPE html&gt;<\/strong><br \/>\n<strong>&lt;html lang=&#8221;en&#8221;&gt;<\/strong><br \/>\n<strong>&lt;head&gt;<\/strong><br \/>\n<strong>\u00a0 \u00a0 &lt;meta charset=&#8221;UTF-8&#8243;&gt;<\/strong><br \/>\n<strong>\u00a0 \u00a0 &lt;meta http-equiv=&#8221;X-UA-Compatible&#8221; content=&#8221;IE=edge&#8221;&gt;<\/strong><br \/>\n<strong>\u00a0 \u00a0 &lt;meta name=&#8221;viewport&#8221; content=&#8221;width=device-width, initial-scale=1.0&#8243;&gt;<\/strong><br \/>\n<strong>\u00a0 \u00a0 &lt;title&gt;Some heading here&#8230;&lt;\/title&gt;<\/strong><br \/>\n<strong>&lt;\/head&gt;<\/strong><br \/>\n<strong>&lt;body&gt;<\/strong><br \/>\n<strong>\u00a0 \u00a0&lt;div&gt;this text contains &lt;b&gt;some text, which is bold, made using the b tag&lt;\/b&gt;, and also some text, which has a &lt;strong&gt;strong importance&lt;\/strong&gt;&lt;\/div&gt;<\/strong><br \/>\n<strong>&lt;\/body&gt;<\/strong><br \/>\n<strong>&lt;\/html&gt;<\/strong><\/p>\n<p>So, if we try to open the file in the browser, you can find that the text between the &lt;b&gt; and &lt;\/b&gt; is displayed as bold text. Also, the text between the &lt;strong&gt; and &lt;\/strong&gt; is displayed as bold, since it is defining the text of strong importance. Have a look at the output &#8211;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-69 size-full\" src=\"https:\/\/gyanipandit.com\/programming\/wp-content\/uploads\/2022\/04\/Tags-for-making-the-text-bold.jpg\" alt=\"\" width=\"1024\" height=\"144\" srcset=\"https:\/\/gyanipandit.com\/programming\/wp-content\/uploads\/2022\/04\/Tags-for-making-the-text-bold.jpg 1024w, https:\/\/gyanipandit.com\/programming\/wp-content\/uploads\/2022\/04\/Tags-for-making-the-text-bold-300x42.jpg 300w, https:\/\/gyanipandit.com\/programming\/wp-content\/uploads\/2022\/04\/Tags-for-making-the-text-bold-768x108.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tags for making the text bold Sometimes, you might want some text on your web page to be displayed in bold, so as to grab user attention, or for describing this text as important. Obviously, you need to use some tag to achieve this. We have b tag for making the text bold. The text [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":{"0":"post-68","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-html-tutorial"},"_links":{"self":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":3,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"predecessor-version":[{"id":261,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/posts\/68\/revisions\/261"}],"wp:attachment":[{"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gyanipandit.com\/programming\/wp-json\/wp\/v2\/tags?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}