join: new@juude



get alerts for new articles






CLOSE WINDOW

join: new@juude



get alerts for new articles






CLOSE WINDOW
html5

Structural, Layout and More

Both the div and span are generic elements. Span is used in the same manner as before, for the most part the div has been replaced by a variety of semantic elements. It can still be used but rarely.

<div> </div> (w3c)

You can use it but for styling purposes only.
Attributes: All Global


 

<span> </span> (w3c)

The span is used to group or single out in-line content often for style purposes.
Attributes: All Global