Re: DIV and SPAN

Discussion in 'HTML' started by Michael Winter, Oct 14, 2004.

  1. [Cross-posted to alt.html; Follow-ups set to alt.html]

    On Fri, 15 Oct 2004 00:14:08 +0800, Bern <> wrote:

    > i was doing some DHTML stuff and suddenly i realised that DIV and SPAN
    > are both very similar. So far the only difference i realised is that DIV
    > is a block element while SPAN is an inline element by default when they
    > are created.


    They are *always* block and inline, respectively. Applying CSS just makes
    them render differently.

    > What else difference is there?


    None, really. They are generic containers used to add some user-defined
    structure.

    <URL:http://www.w3.org/TR/html4/struct/global.html#h-7.5.4>

    Mike

    --
    Michael Winter
    Replace ".invalid" with ".uk" to reply by e-mail.
    Michael Winter, Oct 14, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fulio Open

    Can span include span?

    Fulio Open, Jun 26, 2009, in forum: HTML
    Replies:
    5
    Views:
    537
    dorayme
    Jun 26, 2009
  2. Stéphane Klein
    Replies:
    2
    Views:
    1,738
    John Nagle
    Mar 30, 2010
  3. Stefan Behnel
    Replies:
    0
    Views:
    476
    Stefan Behnel
    Mar 29, 2010
  4. Dan Bishop

    DataGrid (body only) contained in <span>...</span> tags

    Dan Bishop, Jun 7, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    263
    Kilic Beg
    Jun 7, 2004
  5. Wang, Jay
    Replies:
    5
    Views:
    459
    Wang, Jay
    May 25, 2004
Loading...

Share This Page