The <b> tag in HTML is used to indicate the importance of text. The text written within <b> tag display in bold size.
Syntax:
<b> Contents... </b>
Example:
<!DOCTYPE html> < html > < head > < title >b Tag</ title > < style > body { text-align:center; } h1 { color: green; } </ style > </ head > < body > < h1 >GeeksforGeeks</ h1 > < h2 >< b > Tag</ h2 > < p >< b >GeeksforGeeks:</ b > A < b >computer science</ b > portal for geeks</ p > </ body > </ html > |
Output:
Supported Browser: The browser supported by <b> tag are listed below:
- Chrome
- Internet Explorer
- Firefox
- Safari
- Opera
leave a comment
0 Comments