+ 4
What is the use of div tag
4 odpowiedzi
+ 7
The <div> tag defines a division or a section in an HTML document.
The <div> tag is used to group block-elements to format them with CSS.
Tip: The <div> element is very often used together with CSS, to layout a web page.
Note: By default, browsers always place a line break before and after the <div> element. However, this can be changed with CSS.
+ 5
plz give some other use
+ 3
div tag creates a separate division or of elements we use it with js css by giving it name Id class it has its own role too
+ 1
what use I didn't understand here are uses
things written here
<div id=block class=heading>
Write something here
</div>
things found here
css: .heading {
color: blue;
font-weight: bold;
background: red;
}
script:. document.getElementById("block").onmouseover=alert("message");
also it should show the texts written within div as separate division
unless changed