SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: div tag

  1. #1
    SitePoint Member
    Join Date
    Jun 2012
    Location
    Bangladesh
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    div tag

    Why, when, where we use "div" tag in html ?

  2. #2
    SitePoint Member
    Join Date
    Dec 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Div tags are basically used to make content saperate from one and other. Before, that it was table which developers use to make a website. You can search on Google for details.

  3. #3
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,301
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    Quote Originally Posted by yasinfaruk View Post
    Why, when, where we use "div" tag in html ?
    Examples: you might want a sidebar, with various content, so you'd wrap it in a div, give it a width and float it left or right. You would wrap all of the main content in a div, give it a width and float it in the other direction. You might also have a footer section with various things in it, so wrap that all in a div.

  4. #4
    I solve practical problems. bronze trophy
    Michael Morris's Avatar
    Join Date
    Jan 2008
    Location
    Knoxville TN
    Posts
    2,053
    Mentioned
    66 Post(s)
    Tagged
    0 Thread(s)
    Div is the default block level element. It's partner, span, is the default inline element. Both of them are used when something else isn't more semantically appropriate.

  5. #5
    SitePoint Member
    Join Date
    Feb 2013
    Location
    Lucknow
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Div tag is generally used when we have divide a webpage into different sections.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •