Could someone clarify to me the difference between Div , Span & Article? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Could someone clarify to me the difference between Div , Span & Article?

Some help!

29th Oct 2017, 7:17 AM
uhayo
uhayo - avatar
8 Answers
+ 5
Like plate and dessert plate... The difference is in the semantical meaning ^^
29th Oct 2017, 7:59 AM
visph
visph - avatar
+ 4
Same kind of differences than between plate, soup bowl, dessert plate ^^
29th Oct 2017, 7:44 AM
visph
visph - avatar
+ 4
Without joking at all: I'm very serious... They are all containers, only their shapes differenciates them, along with their behaviour which is pretty different for each (and could be changed through Css, about the three html elements obviously ;P)
29th Oct 2017, 7:55 AM
visph
visph - avatar
29th Oct 2017, 9:01 AM
Utkαrsh
Utkαrsh - avatar
0
Thanks xD
29th Oct 2017, 7:49 AM
uhayo
uhayo - avatar
0
I did understand div and span difference but article is it same as Div, No?
29th Oct 2017, 7:58 AM
uhayo
uhayo - avatar
0
I see .. Thank u ^^
29th Oct 2017, 8:02 AM
uhayo
uhayo - avatar
0
Imagine using purely html (no CSS) to stylize text. That's all a span tag does. You can usually get by without it. DIVs can do that and everything else. Open up a good website in firebug and you can the significance of the DIV and how multiple divs create the layout and style of the page. Everything should be inside of a DIV.
3rd Nov 2017, 10:22 PM
Sun Tzu
Sun Tzu - avatar