Why does <div> need ? | Sololearn: Learn to code for FREE!

0

Why does <div> need ?

9/22/2017 9:31:31 PM

Airat

10 Answers

New Answer

+3

div's are used to organise sections in your code. Use it like you would chapters in a book, for example.

+1

I dont remember

+1

https://www.w3schools.com/TAgs/tag_div.asp

+1

div is an html tag not css so I highly doubt it.. I use divs for pretty much everything.. you can style them and give them ids so that's all I really need for anything since most of everything I do is in JavaScript

0

Not need, depends what do you want to do

0

okey) i cant understand this teg, in last lesson this teg is all sentences in code) i dont know how does he use

0

into div you can write which you want, headers, paragraphs, javascript, php, etc

0

thank you, does css course explain this teg?

0

The div element in HTML is a divider. It helps organize your code into sections, while also allowing you to style bigger portions of code. It is extremely helpful when you are righting thousands of lines of code. I never really used it for smaller projects. Hope this helps and if you have any more questions I am here.

0

thank you guya