+ 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
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.
+ 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.