Sunday, February 8, 2009

DIV Tag

Example
A section in a document that will be displayed in green:


This is a header


This is a paragraph.




Definition and Usage
The
tag defines a division or a section in an HTML document.

The
tag is often used to group block-elements to format them with styles.

Tips and Notes
Tip: The div element is very often used with CSS to layout a web page.

Note: Browsers usually place a line break before and after the div element.

No comments:

Post a Comment