+ 6

What is the use of "div" in HTML ? How to use it ?

Can someone explain me this ? So that I will understand how to use it and in which case to use it. Sorry for me English.

10th May 2019, 9:44 PM
Nestor DJINTELBÉ
Nestor DJINTELBÉ - avatar
3 Respostas
+ 13
The HTML <div> tag represents a generic section within an HTML document. ... The <div> element accepts "flow content", which refers to most elements that can appear inside a document's body. The <div> should only be used as a last resort when there isn't another suitable HTML element to use.
11th May 2019, 3:36 AM
Mr AJX 😎😈
Mr AJX 😎😈 - avatar
+ 7
Basically it can be used as a container for other objects, separating them from other objects. A div tag can have separate attributes too.
10th May 2019, 10:29 PM
inxanedev!
inxanedev! - avatar