Span and div tags | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 3

Span and div tags

What’s the main difference between span and div tags? And are they of any significance in one’s code?

18th May 2018, 5:28 AM
4 Réponses
+ 6
div is display block. Span has no style.
18th May 2018, 5:34 AM
Toni Isotalo
Toni Isotalo - avatar
+ 1
yes, there is a difference: span = inline element div = block element
18th May 2018, 5:35 AM
wenz - avatar
+ 1
div tag uses for make a seprate work area for your code..... where span is just uses for perform opaeration on the code which you write. ..suppose you have written a line " i am an computer engineer" for performing operation on "computer" word we uses span whereas div uses for make parts of your webpage like you want to put social media link on left side of your web page then
18th May 2018, 12:37 PM
Khushal Patel
Khushal Patel - avatar
Thank you guys so much!!
19th May 2018, 8:05 AM