Thursday, August 13, 2009

Block and Inline elements

* There are two main types of elements that exist within HTML - the Block Level element and the Inline element.
* A block level element takes up as much space as possible.
* Main block level elements: headers 1-6; paragraph; div; all lists.
* Main inline elements: bold; emphasize; italic; strong; span.
* NEVER EVER place a block level element inside an inline element as:
1. it is bad practise.
2. it violates the W3C standards.
3. it will not be a valid HTML document.

No comments:

Post a Comment