0

What is <div>

What is div and also what are the attributes and it’s uses

7th Jul 2025, 11:33 PM
ADEBAYOR ABUBAKRI
ADEBAYOR ABUBAKRI - avatar
4 odpowiedzi
+ 7
ADEBAYOR ABUBAKRI The <div> element is a block-level container used to group a section/part of code. It is commonly used to apply css or js to a section of the page. It stands for division and it can have several attributes such as id, class, style, title, hidden or any mouse/keyboard events such as onclick, on mouseover, etc.
8th Jul 2025, 1:33 AM
Gulshan Mahawar
Gulshan Mahawar - avatar
+ 1
<div> is a block-level element which means division, is also a container tag
8th Jul 2025, 6:29 PM
zain duah
zain duah - avatar
0
<div> is a container that combines various HTML elements (headers, paragraphs, images, lists, and others). <div> is a block-level element. It can be used when you want to set the color or font of a specific part of a web page. <div> has a role attribute. For example, <div style="color: red;" role="banner"> <h1>Welcome!</h1> <p>Hello, World!</p> </div>
9th Jul 2025, 2:07 PM
Mila
Mila - avatar
0
<div> is a block-level element which is a container used to hold other html elements or group elements together.
9th Jul 2025, 3:35 PM
Bipul Kumar
Bipul Kumar - avatar