Skip to content
Related Articles

Related Articles

HTML <b> Tag
  • Difficulty Level : Basic
  • Last Updated : 11 Feb, 2021
GeeksforGeeks - Summer Carnival Banner

The <b> tag in HTML is used to indicate the importance of the text. The text is written within <b> tag display in bold size. You can do that by using CSS also there is a similar tag <strong> tag that has a similar effect on content.
Syntax: 

<b> Contents... </b>

Example 1: 

HTML




<!DOCTYPE html>
<html>
  
<body>
  
    <h1>GeeksforGeeks</h1>
    <!--paragraph Tag -->
    <p>This is normal paragraph Tag text</p>
  
    <!--bold Tag -->
    <b>This is bold Tag text</b>
  
</body>
  
</html>

Output: 
 

Example 2:



HTML




<!DOCTYPE html>
<html>
  
<body>
  
    <h1>GeeksforGeeks</h1>
    <!--paragraph Tag -->
    <p>This is normal paragraph Tag text</p>
  
    <!--Using CSS in paragraph Tag for making text bold  -->
    <p style ="font-weight: bold">This is bold text using CSS</p>
  
  
</body>
  
</html>

Output:

Supported Browsers: 

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

full-stack-img

My Personal Notes arrow_drop_up
Recommended Articles
Page :