Saturday, November 15, 2008

What is the difference between p tag, div tag, span tag?

A span element is in-line and usually used for a small chunk of in-line HTML.

A div or a P element is block-line (which is basically equivalent to having a line-break before and after it) and used to group larger chunks of code.

No comments: