Can anyone give me the difference between div
and span
tags?
I'll give simple answer, not going into block/inline technical stuff.
Div element can contain other elements, including other Div.
Span element can't contain "complex" elements, only text or things like tag which are same "level" as the span, or technically speaking (sorry!) are inline as well.
Div is used as "placeholder" in the page, for example to contain the whole Menu, then you can place it wherever you want using only CSS and apply same style to everything in the placeholder.
Span is used to style specific text, when you have text inside other text that you want to be in different font/color/size. Can't really think of any other usage for span tag.