+ 4

What is the use of div tag

26th Nov 2016, 11:33 AM
"$uraj @nbhule "
"$uraj @nbhule " - avatar
4 Respuestas
+ 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.
26th Nov 2016, 12:04 PM
Baraa AB
Baraa AB - avatar
+ 5
plz give some other use
26th Nov 2016, 11:36 AM
"$uraj @nbhule "
"$uraj @nbhule " - avatar
+ 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
26th Nov 2016, 11:35 AM
Sandeep Chatterjee
+ 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
26th Nov 2016, 11:59 AM
Sandeep Chatterjee