ad

Monday, September 8, 2025

how to use the html bold tag

 How to Use the HTML <b> Tag for Bold Text (With Examples)

web designing theory



Bold  Tag

The HTML <b> tag which represent bold text in  HTML webpage.<b> and <strong> Elements The <b> tag should  used to markup text as the bold without conveying any extra importance.The <b> tag is written as <b> .....</b> with the text to be bold inserted between the start and end tags..

The HTML <strong> element defines text with strong importance. The content is inside is type.<strong>This text is important!</strong>

Bold  Tag

Example 

<!Doctype html>

<html>  

<head>                                        

         <title>Bold Body Tag </title>

</head> 

<body>

<b>This is  BOLD Body Tag</b>

</body>

</html>

Bold  Tag

Explain Program

Step 1 ]

<!DOCTYPE html>

  •  document type declaration.
  • browser help this is an HTML5 document.

Step 2 ]  

. <html> ... </html>

  • root element of the HTML document.
  • <html> tag is part of the web page.

Step 3 ]  

<body> ... </body>

  • HTML document that holds visible content on the page.
    • A heading (<h2>)
    • An input button (<input type="button">)
    • list tag 
    • ext...

Step 4]  

Bold text

 bold tag use

 

Displays the text in bold using the <b> tag.


Bold  Tag 

Output 





Related Post :-

No comments:

Post a Comment