I'm a divspanspan
The div in the above code is float:left,span without float:left, but the span tag is still displayed on the right side of the DIV tag instead of being overwritten by a DIV tag. This is because the span tag is an inline element and not a block-level element.
? Next attach them both
The difference:
Div and Span differences
The difference is, div? is a block-level (Block-level) element, the element that surrounds it wraps automatically. Span is simply an inline element that does not wrap around it. There is no structural meaning, it is purely an applied style, and the elements can be used when other inline elements are not appropriate. Note that a tag can be contained within a tag, become his child element, and vice versa, that is , the tag cannot contain a tag
The above describes the div float:left and span tags, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.