Computer Graphics Community
div tag - Printable Version

+- Computer Graphics Community (http://www.cgshelf.com/forum)
+-- Forum: Web Designing (/forum-39.html)
+--- Forum: HTML (/forum-43.html)
+--- Thread: div tag (/thread-229.html)

Pages: 1 2


div tag - bpsujith - 07-14-2007 10:06 AM

what actually div tag means.
wat its advantages.
how to apply in a web page.


RE: div tag - animator - 07-15-2007 09:05 AM

Div tag is used to define a logical section in HTML. With div tag you can group large sections together and format them with the help of CSS. Now div tag is mainly used with CSS to create the layouts of an HTML page. Div tags are the best alternatives for the tables to create layouts.

World Wide Web Consortium (W3C) recommends the use of divs over tables. If you want to meet the w3c accessibility guidelines you need to use DIVs.

Eg:

PHP Code:
<DIV>
This is a section.
</
DIV>

<
DIV style="text-align:center">
This is a centrally aligned section.
</
DIV



RE: div tag - albinjoseph - 07-15-2007 09:44 AM

Please make your post in relevant categories. Moving to HTML forum.


RE: div tag - mjecson - 06-15-2010 10:28 AM

DIV is broadly used in the designing but at the same time you can use it in the CSS also. Basically it is used for making the sections in the pages of the website and giving the partition to the contain of the page.


RE: div tag - ritzbhogal - 07-01-2010 10:25 AM

We can divide different areas of web page using div tags. This is a powerful tool and for different applications.
It helps in the maintenance of your site apart from systematizing its contents and as decrease in the ratio of code to content, the web crawlers would be able to find your site’s content pretty easily.

Apply this code for div in web page :

PHP Code:
<div style="color:#00FF00">
This is a header
</div



RE: div tag - rickydom - 11-30-2010 03:04 AM

There can be divided into different areas of the web page for the div tag. This is a powerful tool and a variety of applications. DIV is widely used in design, but at the same time, you can also use CSS. Div tags are the best options for the tables to create layouts.


RE: div tag - alvintroat - 12-23-2010 02:53 AM

- The div tag in XHTML is a tag that defines logical divisions within the content of a page.
- The div tag defines a division or a section in an HTML document.
- The div tag is often used to group block-elements to format them with styles.


RE: div tag - athelnstone - 01-29-2011 06:19 PM

Div tag has very much important in web design.Div is used to make divisions in your page.Div is more suitable to use than table tag.Div helps to set position of each element on web page.


RE: div tag - rickyjack12 - 03-25-2011 04:48 PM

Div tag is used to define a logical section in HTML. With div tag you can group large sections together and format them with the help of CSS. Now div tag is mainly used with CSS to create the layouts of an HTML page. Div tags are the best alternatives for the tables to create layouts.


RE: div tag - watsonlew - 04-28-2011 08:54 AM

The tag is nothing over a container for other tags. Much like the body tag, Div elements are block elements & work behind the scenes grouping other tags together. Use only the following attributes together with your div element, anything else ought to be reserved for CSS.