+ 1

I still don't understand <div> tag, can someone brief me about it?

#beginner

13th Apr 2018, 4:06 PM
Pallavy Gaur
Pallavy Gaur - avatar
6 odpowiedzi
13th Apr 2018, 4:20 PM
Manual
Manual - avatar
+ 9
edit: Fata1 Err0r is right the div tag is used to divide an organize content div is like a room or box. You can use it to hold things. ex: <div class = "cup"> <h2 style ="color:blue">water</h2> </div>
13th Apr 2018, 4:17 PM
Manual
Manual - avatar
+ 4
its a block level element. it is generally used for page classification. this tag is nothing more than a container unit that encapsulates other page elements and divides the HTML document into sections. Web developers use <div> elements to group together HTML elements and apply CSS styles to many elements at once. For instance, by wrapping a set of paragraph elements into a <div> element, the developer can take advantage of CSS styles and apply a font to all paragraphs at once by applying a font style to the <div> tag instead of coding the same style for each paragraph element.
13th Apr 2018, 4:29 PM
MD ATIQ SHARIAR
MD ATIQ SHARIAR - avatar
+ 3
DIV = Division It's a container that's used to divide up content on your page.
13th Apr 2018, 4:10 PM
Fata1 Err0r
Fata1 Err0r - avatar
0
Its a generic container element with no semantic mean and its default displayed like block (start and end on "new line")
13th Apr 2018, 4:22 PM
KrOW
KrOW - avatar
0
thankyou people. 💜
13th Apr 2018, 4:31 PM
Pallavy Gaur
Pallavy Gaur - avatar