+ 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?
4 Respostas
+ 6
div is display block. Span has no style.
+ 1
yes, there is a difference:
span = inline element
div = block element
+ 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
0
Thank you guys so much!!