<span> vs <div>

Discussion in 'HTML' started by toylet, Feb 24, 2004.

  1. toylet

    toylet Guest

    What are their differnces? Any url that discusses this?

    --
    .~. Might, Courage, Vision. In Linux We Trust.
    / v \ http://www.linux-sxs.org
    /( _ )\ Linux 2.4.22-xfs
    ^ ^ 10:12am up 16:17 0 users 1.08 1.08
     
    toylet, Feb 24, 2004
    #1
    1. Advertisements

  2. > What are their differnces? Any url that discusses this?

    According to w3schools.com:

    The <div> tag defines a division/section in a document.

    and

    The <span> tag is used to group inline-elements in a document.
     
    e n | c k m a, Feb 24, 2004
    #2
    1. Advertisements

  3. toylet

    Craig Guest

    Which means a DIV will make a new box (like a new paragraph, it'll jump
    down and begin a new line) while span can be used within a sentence, for
    example to make *these words in blue* then go back to normal text
    without breaking the line.



    e n | c k m a wrote:

    >>What are their differnces? Any url that discusses this?

    >
    >
    > According to w3schools.com:
    >
    > The <div> tag defines a division/section in a document.
    >
    > and
    >
    > The <span> tag is used to group inline-elements in a document.
    >
    >
     
    Craig, Feb 24, 2004
    #3
  4. toylet

    Mark Parnell Guest

    Mark Parnell, Feb 25, 2004
    #4
  5. toylet

    Csaba Gabor Guest

    Csaba Gabor, Apr 21, 2004
    #5
    1. Advertisements

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. Ralph Krausse

    DIV or SPAN

    Ralph Krausse, Sep 13, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    462
    Steve C. Orr [MVP, MCSD]
    Sep 13, 2004
  2. K Viltersten

    <div ... /> and <div ...></div>

    K Viltersten, Mar 30, 2009, in forum: ASP .Net
    Replies:
    4
    Views:
    1,134
  3. Fulio Open

    Can span include span?

    Fulio Open, Jun 26, 2009, in forum: HTML
    Replies:
    5
    Views:
    799
    dorayme
    Jun 26, 2009
  4. Stéphane Klein
    Replies:
    2
    Views:
    2,211
    John Nagle
    Mar 30, 2010
  5. Dan Bishop

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

    Dan Bishop, Jun 7, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    511
    Kilic Beg
    Jun 7, 2004
  6. Wang, Jay
    Replies:
    5
    Views:
    821
    Wang, Jay
    May 25, 2004
  7. Dwayne Madsen

    Q: Div A inside Div B is larger than Div B

    Dwayne Madsen, Jun 1, 2005, in forum: Javascript
    Replies:
    1
    Views:
    492
    David Dorward
    Jun 1, 2005
  8. mscir
    Replies:
    3
    Views:
    570
    Martin Honnen
    Jun 26, 2005
Loading...