Tutorialspoint.dev

HTML | b Tag

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:
btag

Supported Browser: The browser supported by <b> tag are listed below:

  • Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera


This article is attributed to GeeksforGeeks.org

leave a comment

code

0 Comments

load comments

Subscribe to Our Newsletter