Jump to content

Div and span

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Pearle (talk | contribs) at 12:27, 14 December 2005 (Changing {{cleanup}} to {{cleanup|December 2005}}). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

You must add a |reason= parameter to this Cleanup template – replace it with {{Cleanup|December 2005|reason=<Fill reason here>}}, or remove the Cleanup template.
In HTML, the reason behind elements is to apply meaning to the content. Whereas P-tag is separates one paragraphes from others and from other content, the header elements (H1-H6) creates headers and so on, the span and the div elements apply no logic at all.

The difference between the div and the span tags is that the div is a block element and the span is an in-line element.