Coding Wiki
Most Common Coding Questions
Find answers to popular programming questions and level up your coding skills
Html bold text
Learn how to style your text in HTML using the <b> and </b> tags or by applying CSS styles.
Answer:
Html provides two types of bold text formats - <b> and </b>. The HTML tag for bold font does not display well in all browsers.
html
<b>This is a bold</b> example
On the other hand, using <b> can be problematic if you need to use it within HTML tags themselves.
In this case, you should use </b>. For instance, let's say you have a heading and want it to be bold: <b>Heading</b>
html
<p>This <b>example</b> paragraph will display in bold.</p>
Alternatively, you can also use CSS to make text bold.