+ 1

How can I use div’s much better on a website?

Usually I inspect webpages to learn better of the structure of it. I been seeing lots of divs and some of them are used only for one thing on CSS and some of them are used for almost everything. I tried to write like that but my code gets mixed.

18th Dec 2020, 9:53 PM
Ä°lker Ates
Ä°lker Ates - avatar
6 Answers
+ 2
divs is old , try the semantic html5 tags. header , main , footer , aside , section , article .... much more , to organize the structure. feel free to google it
18th Dec 2020, 10:14 PM
Med Amine Fh
Med Amine Fh - avatar
+ 1
Spentify Everyone has his path, as long as the work is done.
18th Dec 2020, 10:32 PM
Med Amine Fh
Med Amine Fh - avatar
+ 1
You can use semantic as suggested above or Can use comments in codes to show how it is flowing.
19th Dec 2020, 1:37 AM
Divya Mohan
Divya Mohan - avatar