Is <div> important | Sololearn: Learn to code for FREE!

0

Is <div> important

Do we have to use <div></div> on the content we want to style

10/23/2019 8:38:16 AM

Laxmi Pandey

7 Answers

New Answer

+5

It is very essential to structure and divide your webpage. If you meant using the <div> tag with an attribute of class or id, it is, but its up to you. Basically, I use <div>'s as a container of correlated elements to position them easily and effectively on the page.

+1

it is better to use the same tag for all containers because u will write styles for them and will need to write the same styles several times if it will be different tags, but it can be any block element and not “div” only.

0

No because we have many tags in html . example - p tag and span tag

0

Not necessary to use Div tag. If you are aware with HTML4 or HTML5 there is new tag introduced. You can use them behalf of div tag

0

It is not necessary or mandatory to use <div> tag always. You can use <section> tag instead of <div> tag. Which is introduced in html5

0

You have to exaplain c programming

0