+ 1
What is div ? What is class ?
6 Answers
+ 5
Wow... Sorry, I read to fast...
<div> and 'class' are not directly comparable/related...
<div> is an html element, while 'class' is a generic attribute of any html element ^^
+ 3
ID stand for IDentifier, meaning that it must be unique to indentify explicitly an element...
Classes can be set to many element, giving them the ability to be targeted by css rules at once for a set of elements. We could use many class names on one element...
+ 1
div is a element and id is selector
0
Are you kidding?
Rather redo your Html course, and finish the Css one @@
- 1
@visph what is the difference between div and class ?
I'm confused .
- 2
can you specify their use ?