+ 1
I still don't understand <div> tag, can someone brief me about it?
#beginner
6 Respostas
+ 9
+ 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>
+ 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.
+ 3
DIV = Division
It's a container that's used to divide up content on your page.
0
Its a generic container element with no semantic mean and its default displayed like block (start and end on "new line")
0
thankyou people. 💜