+ 1

What is div ? What is class ?

9th Aug 2017, 12:16 PM
Mohak Trivedi
Mohak Trivedi - avatar
6 odpowiedzi
+ 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 ^^
9th Aug 2017, 12:52 PM
visph
visph - avatar
+ 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...
9th Aug 2017, 12:20 PM
visph
visph - avatar
+ 1
div is a element and id is selector
9th Aug 2017, 12:56 PM
Isomer
Isomer - avatar
0
Are you kidding? Rather redo your Html course, and finish the Css one @@
9th Aug 2017, 12:56 PM
visph
visph - avatar
- 1
@visph what is the difference between div and class ? I'm confused .
9th Aug 2017, 12:46 PM
Mohak Trivedi
Mohak Trivedi - avatar
- 2
can you specify their use ?
9th Aug 2017, 12:53 PM
Mohak Trivedi
Mohak Trivedi - avatar