span gives a blue box for h1 but not for h2 or others why? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
- 1

span gives a blue box for h1 but not for h2 or others why?

here is the code <html><head><title>My log </title></head> <body><h2><span>My skills </span></h2> <ol><li>C language </li> <li> Learning html </li> <li> going to learn java</li></ol> <form> <input name = " " place holder=" "type="text"></input></form> </body> </html>

13th Jun 2017, 3:22 PM
Prathyusha
2 Respostas
+ 2
Please share your code
13th Jun 2017, 3:40 PM
ą¤¦ą„‡ą¤µą„‡ą¤‚ą¤¦ą„ą¤° ą¤®ą¤¹ą¤¾ą¤œą¤Ø (Devender)
ą¤¦ą„‡ą¤µą„‡ą¤‚ą¤¦ą„ą¤° ą¤®ą¤¹ą¤¾ą¤œą¤Ø (Devender) - avatar
+ 1
For span tag in blue box, add below CSS h2 span { background: lightblue; padding: 10px 20px; } Btw why you need span in the h2? Heading h2 tag can do the job?
13th Jun 2017, 4:05 PM
CalviÕ²
CalviÕ² - avatar