DIV and SPAN provide, respectively, a block level or inline means to group material and apply special attributes to it (using the style attribute, so CSS styles have to be working). The browser does not do anything special to render these elements beside the block break with DIV.
New paragraph, still green. This sentence, covered by a SPAN, should be red. And the paragraph picks up in green. Now the DIV ends.