+ 1

What is the span tag does?

5th Sep 2019, 3:42 PM
Oh Boi!
Oh Boi! - avatar
4 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
wenz - avatar
+ 2
Thank you everyone!
6th Sep 2019, 2:49 PM
Oh Boi!
Oh Boi! - avatar