Display:block ?

Discussion in 'HTML & Website Design' started by sharmakamal, Apr 21, 2012.

  1. #1
    why we use display block tag in html???
     
    sharmakamal, Apr 21, 2012 IP
  2. tobias.wagner

    tobias.wagner Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This attribute allows you to change the behavior of non-block tags to work as block tags, for example a <span> tag can behave like <div>

    Check on Google for better understanding of what it does, search for "difference between block and inline tags"
     
    tobias.wagner, Apr 25, 2012 IP
  3. web.seowrkshop

    web.seowrkshop Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    display block tag property is used in div. and this allow any div to display the iv as block , mainly w use this property to display to create the menu, where we keep the submit like buttns on left to right menu.it helps to keep its display like rectangle block.
     
    web.seowrkshop, Apr 27, 2012 IP