What is the span tag does? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

What is the span tag does?

5th Sep 2019, 3:42 PM
Oh Boi!
Oh Boi! - avatar
3 Respuestas
+ 5
You can use it to stylish some selected elements. Copy & paste this to a web code to see how it looks. <p>Hello <span style=color:red;>There</span></p>
5th Sep 2019, 3:46 PM
ūüćá Alex Tu»ôinean ūüíú
ūüćá Alex Tu»ôinean ūüíú - avatar
+ 4
Basically it's the same like a <div> but an inline element instead of a block element. It's often used to style certain words within a block differently. I.e. make some words within a <p> red. (See answer of Alex)
5th Sep 2019, 3:54 PM
wenz - avatar
+ 2
Thank you everyone!
6th Sep 2019, 2:49 PM
Oh Boi!
Oh Boi! - avatar