How To Use Div Tags

TOP 3 RESOURCES

The tag that describes the logical divisions inside a page content is known as the div tag in XHTML. In HTML, div tag is defined as the tag that comprise of any other tag and that cant be inside

tags. With a div tag, you can easily manage, manipulate and style the sections of a web page. You can even use it to locate a content block on the page or can center a block of the content. Let whatever be the benefit, this article will give you some important instructions to use div tags.

1. Entering of Div tag: redesigning a page without the use of div tags can be a time consuming and tricky job. If you make use of div tags that are united with CSS, it will be easy for you to manage and manipulate the page afterwards. Not just the position in the layout, but you can define the page regarding its logical division when using div tags. By entering div tags, you can easily customize or style them however as needed. As you are using a tableless layout, you will require using CSS positioning for getting the divisions wherever you want to page them.

2. Div tag for Paragraph: In the Div tag,

tag defines the paragraph. However, remember not to replace

tags with the div tag as in the div tags there are numerous other general divisions in the document.

3. Labeling your div tag: You can place div tags by labeling them in your documents. For instance, if you wish to define the main content area in your website, you can label by naming the div tag as maincontent. Ie,

.

4. Closing your div tags: It is always advised to close your div tags whenever you open them so that you can easily place the contents inside the element.

5. Nesting the div tags: Whenever you wish to nest your div tags, you should be certain that you know the place where your content is moving. That means, you should know which div tag is the part of it.

This article is copyright and can not be republished.
Source: http://www.ghowto.com/education/how-to-use-div-tags.html Bookmark and Share

Note: The information provided on this site may be provided by third parties. The owners and operators of this site do not guarantee the accuracy, completeness, and compliance of the content on this site. Such content is not and shall not be deemed tax, legal, financial, or other advice, and we encourage you to confirm the accuracy of the content. Use is at your own risk, and use of this site shall be deemed acceptance of the above.