Why do span works only for h1 type of heading? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Why do span works only for h1 type of heading?

span in h1 gives a blue box around it but in others it won't why?

13th Jun 2017, 2:38 PM
Prathyusha
4 ответов
+ 3
Wich code? Wich browser/device os? I can use <span> inside <h1> without the blue box behaviour about which you describe ^^
14th Jun 2017, 2:01 AM
visph
visph - avatar
+ 2
Your code might have a CSS code for span that's why. h1 span{} Like this that's why it is working for h1elem only
14th Jun 2017, 2:26 AM
Siddharth Saraf
+ 1
No, span tag works with any block elements.
13th Jun 2017, 3:16 PM
Calviղ
Calviղ - avatar
0
because you use them with h1 :D
13th Jun 2017, 5:22 PM
Mohiuddin Sumon
Mohiuddin Sumon - avatar