why the <h1> "<b>" </h> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why the <h1> "<b>" </h>

int the try it your self section i saw that there was a <b> tag between the heading examples and wondered why? i removed one of the <b> and the output was the same. so why the <b>? <html> <head> <title>first page</title> </head> <body> <h1>This is heading 1<b></h1> <h1>This is heading 1</h1> <h2>This is heading 2<b></h2> <h3>This is heading 3<b></h3> <h4>This is heading 4<b></h4> <h5>This is heading 5<b></h5> <h6>This is heading 6</h6> </body> </html>

19th Oct 2016, 8:39 PM
Michael Headlam
Michael Headlam - avatar
1 Answer
0
this <br> tag was to switch to the next line..but the browsers today ignore mistakes..so when u removed it..still no problem was thr
24th Oct 2016, 4:02 AM
Barsha Mishra
Barsha Mishra - avatar