Divisions:
The <div> tag defines a division in an HTML Web page. It is used to group block-elements and format them with CSS. The new structural semantic tags reasonably reduce a lot of <div> tag’s usage, but <div> tag is still important in the HTML5 world. The <div> tag can be used when there is no other semantically appropriate element left that suits the purpose in a Web page development. It can be commonly used for stylistic purposes such as wrapping some semantically marked-up content in a CSS-styled container.
Code Snippet 14 demonstrates an HTML code to show the use of <div> tag used for wrapping.
Code Snippet 14:
<body>
<div id=”wrapper”>
<header>
<h1>Hello</h1>
<nav>
<! -- ... -->
</nav>
</header>
</div>
</body>
Tips for using <div> tag in Web site development are as follows:
The <div> tag is a block-level element.
The <div> tag can contain any other tag.
In HTML5, the <div> tag can be found inside any element that can contain flow elements, such as other <div>, <address>, <section>, and <table>.
Nice blog Very useful information is providing by ur blog. find Great beginning html tutorials Very clear and helpful for beginners.
ReplyDelete