HTML5 > Elements of HTML

Bold in HTML5

How to display text in BOLD style?


Used to show a text in bold style. 

CODE  
This is Normal text. 
<b>This text is bold</b>

In the above code snippet, 2nd line displays the text in bold style.

OUTPUT

Notice the 2nd statement of the code snippet is in the bold style. Here, even if the code snippet is in 2 lines, the output comes as only one line because HTML doesn't treat line break as new line. To create a new line, we can use <br /> tag explained above.

 Views: 6882 | Post Order: 3



Write for us






Hosting Recommendations