What is div tag? What's the benefits of this tag? Can you tell me whole about this? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

What is div tag? What's the benefits of this tag? Can you tell me whole about this?

I want to know about div and class tag. So, friends please help me. https://code.sololearn.com/WLtiSBd1TgLy/?ref=app

28th Apr 2019, 5:21 PM
Monirul Islam
Monirul Islam - avatar
2 Réponses
+ 8
div is used to slice the code into sections. You can stylish a div element and all elements inside it will stylish the same.(sorry for bad english) class and id are used only in css. You can stylish an certain element from html , by giving it an class or id , and using those in css like: .class #id you can give the same class to more elements , but id is unique , and you can assing the same name only to one tag.
28th Apr 2019, 6:02 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 8
Also , you shouldn't try very hard to understand that code from the html lesson.("My Blog"). It is pretty hard to understand for a new learner.Learn more, practice , and later , come back to that code.
28th Apr 2019, 6:20 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar