0
What is <div>
What is div and also what are the attributes and it’s uses
4 Respuestas
+ 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.
+ 1
<div> is a block-level element which means division, is also a container tag
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>
0
<div> is a block-level element which is a container used to hold other html elements or group elements together.