<DIV>
am 22.05.2007 01:16:37 von Brian RobertsonCan anyone explain to me what the
I have read several explanations in books and they have all gone right
over my head.
Brian.
Re: <DIV>
am 22.05.2007 01:38:01 von doraymeIn article On May 22, 12:16 am, Brian Robertson On Mon, 21 May 2007 23:16:37 GMT Brian Robertson scribed: Neredbojias wrote: On 22 May 2007 08:44:04 -0700, Ciaran and
Brian Robertson
> Can anyone explain to me what the
> I have read several explanations in books and they have all gone right
> over my head.
>
> Brian.
What about the explanation at a super well known web
informational site claiming human communal omniscience:
"In HTML and XHTML, span and div tags are used to describe
content that cannot be properly described by other, more semantic
tags. The div tag defines a division or section within an HTML or
XHTML document, hence its name, div."
--
dorayme
Re: <DIV>
am 22.05.2007 17:44:04 von cronoklee
wrote:
> Can anyone explain to me what the
> 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=E1n
Re: <DIV>
am 22.05.2007 21:16:48 von Neredbojias
> Can anyone explain to me what the
> I have read several explanations in books and they have all gone right
> over my head.
It establishes the opening boundary of a block-style containing element.
Try it; you'll like it.
--
Neredbojias
He who laughs last sounds like an idiot.
Re: <DIV>
am 23.05.2007 02:43:23 von Brian Robertson
> On Mon, 21 May 2007 23:16:37 GMT Brian Robertson scribed:
>
>> Can anyone explain to me what the
>> I have read several explanations in books and they have all gone right
>> over my head.
>
> It establishes the opening boundary of a block-style containing element.
>
> Try it; you'll like it.
>
Thanks everyone. Yes, that DOES explain it and its so simple.
You know, I really do despair of most books about computers/programming.
Ive had a computer for 10 years now and I still sometimes struggle with
the most basic concepts simply because they are so badly explained.
Such is life. Thanks again.
Brian.
Re: <DIV>
am 23.05.2007 03:17:28 von Ed Seedhouse
>On May 22, 12:16 am, Brian Robertson
>wrote:
>> Can anyone explain to me what the
>> 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.
Well no, for most content other preferable tags exist, like
--H6> and
. DIV tags are meant for grouping block elements into
logical divisions of the document, and SPANS are there, if I recall
right, to create CSS hooks into short sections of text for various
effects, though it's usefulness in general is questionable, I think.
Using all DIVs in place of semantically appropriate titles is just as
bad as using tables for layout. It even has a name you can google for :
"divitis"
>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