Next Previous Contents HTML 4.0 compliance checked by

7.5.4 Grouping: DIV and SPAN

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.

This is the start of the DIV. It is not in a P element but the previous P element should have ended. It should be green color.

New paragraph, still green. This sentence, covered by a SPAN, should be red. And the paragraph picks up in green. Now the DIV ends.

Resuming the default color (typically black), again without a P element, but there should be a block break.
Next Previous Contents