+ 2

Hi just started html , let’s see it help to change my future, presently working hard job

<div> how we can used

29th May 2018, 4:20 PM
Alyas Ahmed
Alyas Ahmed - avatar
9 Respuestas
+ 3
"<div>" defines classes I believe.
29th May 2018, 4:26 PM
Archie
Archie - avatar
+ 2
A class in general
29th May 2018, 4:29 PM
Archie
Archie - avatar
+ 2
perfect thanks really appreciate.
29th May 2018, 4:48 PM
Alyas Ahmed
Alyas Ahmed - avatar
+ 1
thanks
29th May 2018, 4:27 PM
Alyas Ahmed
Alyas Ahmed - avatar
+ 1
what kind of classes
29th May 2018, 4:29 PM
Alyas Ahmed
Alyas Ahmed - avatar
+ 1
ok
29th May 2018, 4:30 PM
Alyas Ahmed
Alyas Ahmed - avatar
+ 1
much better, can explain through any simpl example
29th May 2018, 4:38 PM
Alyas Ahmed
Alyas Ahmed - avatar
0
div doesn't define any class, it's basically a container that can take any content. a div can have a class (or id) so that it can be stylized to your liking. Also, you can nest Divs indefinitely.
29th May 2018, 4:34 PM
CHMD
CHMD - avatar
0
For instance <div class="blog-container"> <div class="blog-article"> <p> Article 1</p> </div> <div class="blog-article"> <p> Article 2</p> </div> ...etc </div> You can also, for example, have a div that contains comments within each blog-article div. As I said, whenever you need to divide a section for a particular content, you use a div. Note that the classes are there to stylize the Divs through CSS, you can name them however you want.
29th May 2018, 4:46 PM
CHMD
CHMD - avatar