Div???

Discussion in 'HTML & Website Design' started by thinkgood, Oct 18, 2009.

  1. #1
    what about div??

    plz tell me which use of div?

    what's the difference between div & spam??:)
     
    thinkgood, Oct 18, 2009 IP
  2. nichoLora

    nichoLora Peon

    Messages:
    67
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    nichoLora, Oct 18, 2009 IP
  3. jewels1

    jewels1 Active Member

    Messages:
    118
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    53
    #3
    div is used in order to divide a page in to segments, meaning that if you put something in a div it will automatically add line breaks before and after it.

    Also, you can align a div, but you cannot align a span.
     
    jewels1, Oct 18, 2009 IP
  4. Love*

    Love* Well-Known Member

    Messages:
    1,739
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    165
    Digital Goods:
    1
    #4
    Wow, I never thought such a simple question can be so hard to answer.. Hmmm, how does one even explain this? :p

    Div, is like a big plate, while span, is like a small plate. Lmao! :p

    No, seriously though, div is almost like a table element without the TDs & TRs. While span is more of like a paragraph kind of thing, where it's more for phrases, & letters, sentences. :)
     
    Love*, Oct 18, 2009 IP
  5. Gungz

    Gungz Peon

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Well, div and span are usually used for styling with CSS and for DHTML code to pop up.

    The difference between div and span is that div makes your line break while span doesn't.
     
    Gungz, Oct 18, 2009 IP
  6. etom

    etom Guest

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Span is inline tag and div is block tag.
     
    etom, Oct 19, 2009 IP
  7. dabzo

    dabzo Peon

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    w3schools.com/css/default.asp
     
    dabzo, Oct 19, 2009 IP