Currently Viewing Posts Tagged DIV

DIV and SPAN

Within standard design web site, the DIV and SPAN are used widely.
The W3C, in “The Global Structure of an HTML Document,” defines these two elements.
The DIV and SPAN elements, in conjunction with the id and class attributes, offer a generic mechanism for adding structure to documents. These elements define content to be inline (SPAN) or block-level (DIV) but impose no other presentational idioms on the content. Thus, authors may use these elements in conjunction with style sheets, the lang attribute, etc., to tailor HTML to their own needs and tastes.
What is This Thing Called div?
This is as good a place as any to explain that “div” is short for “division.”
When you group a bunch of links together, that’s one division of a document. Content would be another, the legal disclaimer at the foot of the page would be still another, and so on.

Continue reading “DIV and SPAN”

  • Archives