|
Posted by Ciaran on 05/22/07 15:44
On May 22, 12:16 am, Brian Robertson <brianrobertson@[nospam].com>
wrote:
> Can anyone explain to me what the <DIV> tag does? Keep it simple, folks.
> I have read several explanations in books and they have all gone right
> over my head.
>
> Brian.
Brian, div and span tags are basically containers to put content into.
You can attach styles to these tags which will effect everything
inside the tags. The main difference between div and span tags is that
by default, div tags display in a block whereas span tags display
inline with whatever else is around them. ie When you put something
into a div, it's automatically displayed on a line on its own. When
you put something into a span, it does not effect the layout until you
begin to add styles.
Hope that helps,
Ciarán
Navigation:
[Reply to this message]
|