what is the role of <div> element in designing a web page...?
what is the role of <div> element in designing a web page...?
Hi....
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.
Example:
<html>
<body>
<h3>This is a header</h3>
<p>This is a paragraph.</p>
<div style="color:#00FF00">
<h3>This is a header</h3>
<p>This is a paragraph.</p>
</div>
</body>
</html>
Cegonsoft
---------------------------
Final Year Projects
How it helps in SEO..
It doesn't help in SEO. It is just used for designing purposes.
Somebody told me that if we design the web site using <div> element google search engine ranks that site higher than other sites which is designed using table element.. is it..
It is used to build a website in tableless format, the site could face problems in different browsers if the site is working fine on the default browser. Comparatively, the sites designed in table format loads perfectly without any error.
The role of div tag is, <div> tag defines a division or a section in an HTML page.
Its used for designing purpose not for seo.. but the H1 tags and alt image tag, title meta keywords and description and etc. they are helpful in seo.
Div tag is define division in the HTML .By Div tag you can design all Web page. it is containing block of code.

div tags rarely help in terms of search engine optimization. It does help you organize the content with sections. That is the only purpose I see it serving in my coding.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks