+ Reply to Thread
Results 1 to 10 of 10




  

Thread: how to use the div tag?

      
  1. #1
    I'm New! ppark is on a distinguished road
    Join Date
    December 9, 2011
    Posts
    1
    Rep Power
    0
    Feedback Score
    0

    Default how to use the div tag?

    hi
    this is gokul
    i dont know to use the div tag
    could any one explain cleanly about the div tag
    thank you

  2. #2
    Jedi Master cyberdesignz is on a distinguished road
    Join Date
    April 5, 2010
    Location
    USA
    Posts
    62
    Rep Power
    3
    Feedback Score
    0

    Default Re: how to use the div tag?

    <div> tag is used to define a division in your website/HTML page. it also used to group block-elements to format them with styles.
    it is often use with CSS to layout a HTML page.

    <html>
    <head>
    <style type="text/css">
    div.header
    {
    background:#AABB00;
    width:220px;
    padding:10px;
    border: 2px solid;
    }
    </style>
    </head>
    <div class="Header">
    <h3>This is a header Div</h3>
    </div>
    </head>
    </html>
    Try this example

  3. #3
    I'm New! vipandiversity is on a distinguished road
    Join Date
    July 21, 2011
    Location
    Ludhiana
    Posts
    27
    Rep Power
    1
    Feedback Score
    0

    Default Re: how to use the div tag?

    If you use the <div> tag combined with CSS, you will create a page that is easy to manage and manipulate later. Using the <div> tag allows you to define the page in terms of the logical divisions of the page, not just the locations in the layout (that will certainly change in the future). Most Web pages have fairly standard content chunks, and if you use the <div> tag to divide them, you'll be ready to style them however you'd like.

  4. #4
    I'm New! trailblazer is on a distinguished road trailblazer's Avatar
    Join Date
    August 24, 2011
    Posts
    55
    Rep Power
    1
    Feedback Score
    0

    Default Re: how to use the div tag?

    Yep I love to use div tag to call class functions in css. Div tag helps also in positioning text and images. So many uses. It is pretty easy to program when you follow good formatting codes. Div tag serves as a guide to begin a section of code.

  5. #5
    Jedi Master bardy is on a distinguished road
    Join Date
    June 25, 2009
    Posts
    188
    Rep Power
    3
    Feedback Score
    0

    Default Re: how to use the div tag?

    Thanks a lot for this important sharing. As I am newbie to this so this proves beneficial for me.

  6. #6
    Permanently Banned rasel786 is on a distinguished road rasel786's Avatar
    Join Date
    October 3, 2011
    Posts
    31
    Rep Power
    0
    Feedback Score
    0

    Default Re: how to use the div tag?

    I am agree with cyberdesignz

  7. #7
    Grand Masters simplyamazing12 will become famous soon enoughsimplyamazing12 will become famous soon enough
    Join Date
    May 6, 2010
    Posts
    593
    Rep Power
    3
    Feedback Score
    0

    Default Re: how to use the div tag?

    I agree. Div tags are very useful in CSS and it has jQuery applications as well. You can add text so it eliminates the loading time since you do not need images for text. It is much more dynamic too so you can change the text anytime you want.
    My Business: Chi Chi Floral [link soon!]

    Web hosting provided by: Myhosting.com

  8. #8
    I'm New! mtrick is on a distinguished road mtrick's Avatar
    Join Date
    December 22, 2011
    Location
    india
    Posts
    41
    Rep Power
    1
    Feedback Score
    0

    Default Re: how to use the div tag?

    Div tag Always within body tag. <div></div>

    <html>

    <head>
    <style type="text/css">
    div.header
    {
    background:#AABB00;
    width:220px;
    padding:10px;
    border: 2px solid;
    }
    </style>
    </head>
    <div class="Header">
    <h3>This is a header Div</h3>
    </div>
    </head>
    </html>

  9. #9
    I'm New! bryanbell is on a distinguished road
    Join Date
    December 7, 2010
    Location
    Florida
    Posts
    31
    Rep Power
    2
    Feedback Score
    0

    Default Re: how to use the div tag?

    The div tag actually defines logical divisions in the webpage in XHTML. You can build, manage and give style to your webpage with the help of div tag. If you can use the div tag with CSS then it will become easy for you to use div tag.

    For more information click here..
    How to use DIV Tags and CSS to Create Advanced Website Layouts and Columns in Dreamweaver: Part 1 - YouTube

  10. #10
    I'm New! bryanbell is on a distinguished road
    Join Date
    December 7, 2010
    Location
    Florida
    Posts
    31
    Rep Power
    2
    Feedback Score
    0

    Default Re: how to use the div tag?

    DIV tag is use to describe the logical division inside the tag of XHTML and HTML, Div tag is use to create and manage sections on a webpage.

    For more use of Div tag check this link How To Use Div Tags - gHowTo.com

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

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
WebTalkForums
WebTalkForums
Recent Forum Threads