Today, I will explain difference between b and strong in html.
HTML strong tag:
The strong tag is one of the element of HTML used in formatting HTML texts. It is used to show importance of the text by making it bold or highlighting it semanticall.
Syntax:<strong> Dev Codeing solution </strong>
HTML bold tag:
The bold tag or is also one of the formatting elements of HTML. The text written under tag makes the text bold presentationally to draw attention.
Syntax:<b> Dev Codeing solution </b>
Example:
<!DOCTYPE html> <html> <head> <style> body { text-align:center; } h1 { color: green; } </style> </head> <body> <h1>Dev Codeing solution</h1> <p><strong> My name is Dev Codeing solution. </strong></p> <p><b>This text is bold.</b></p> </body> </html>
Output:
It Will help you.....Dev Codeing solution
My name is Dev Codeing solution.This text is bold.
0 Comments