Text formatting in html
- how to bold in html
- how to bold in html css
- how to bold in html tag
- how to boldface in html
How to bold text in css.
How to Bold Text in HTML
To bold the text in HTML, we can use either <b> tag or <strong> tag.
Bold tag in html with exampleThe browsers display the <b> and <strong> tags content in same way. The <b> tag is used to bold the text, while <strong> tag used to bold the text and shows the importance of text. We can also use CSS font-weight property to bold the text.
Bold Text in HTML using b Tag
The <b> tag is used to make text bold for styling purposes.
It does not add any extra significance or meaning to the content.
Text formatting tags in html with example
It simply makes the text visually bold.
Output
Bold Text in HTMLSample: This text is bold
Bold Text in HTML using strong Tag
The <strong> tag also makes text bold, but it has additional meaning.
It indicates that the enclosed content is important or should be emphasized, which benefits both accessibility (screen readers may give it special attention) and SEO.
Output:
Making text Bold using strong tag
Bold Text with CSS using font-weight Property
The font-weight property is highly customizable.
It can give you more control over vi
- how to bold something in html
- how to remove bold in html