+ 1
Can you pls tell more about <span> and <div> tags?
4 ответов
+ 11
The difference between span and div is that a span element is in-line and usually used for a small chunk of HTML inside a line (such as inside a paragraph) whereas a div (division) element is block-line (which is basically equivalent to having a line-break before and after it) and used to group larger chunks of code
+ 2
Thanks... Melik...
+ 2
Excellent Ajay!
0
Did you ever played Lego?
Span and div is looks and seems similiar. One piece of Lego is span and a block of Lego is div.
So in this example we understand that we should use span inside divs.
<div>
<div>
<span></span>
</div>
</div>
By this you can use css more effectively.