What's the difference between IDs & Classes? | HTML, CSS & JavaScript

What's the difference between IDs & Classes? | HTML, CSS & JavaScript

dcode

6 лет назад

67,974 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Hassan Learning
Hassan Learning - 02.11.2023 19:25

The explanation was clear and easy to understand. The examples provided were also very helpful. Thank you.

Ответить
Not the Zombie
Not the Zombie - 26.09.2023 17:25

Ty I'm doing one of these 5d boot camps to see if coding is something I want to pursue or if my brain can handle it.... and I got hung up on the difference of class and id selectors but you explained it really well. It was a lot easier than I was making it out to be.

Ответить
Bernardo Moniz
Bernardo Moniz - 06.09.2023 18:35

ty so much!

Ответить
Houda Maarfi
Houda Maarfi - 31.08.2023 17:16

thank you so much

Ответить
Ali Si Hosseini
Ali Si Hosseini - 04.05.2023 15:18

Thank you a lot you for sharing such an important point.
I am a bit confused about something that I notice in this tutorial, which is the color of the <h2> why is not black and you didn't even style it yet ??.
can you make it clear for me how you had the <2> in the body part with this colour?.

Ответить
Jorge Frias
Jorge Frias - 01.02.2023 19:15

Straight to the point. Sub!

Ответить
Christopher Claudio Skierka
Christopher Claudio Skierka - 17.12.2022 14:31

Big help thanks ps how did you copy the div multiple times, what key did you use etc? Thanks in advance

Ответить
natsuki subaru
natsuki subaru - 04.12.2022 13:40

Thank you mate.

Ответить
Andromilk
Andromilk - 13.11.2022 19:49

If you had the same title on different pages, I assume you could use the same ID also right?

Ответить
Zolboo Enkhjargal
Zolboo Enkhjargal - 10.10.2022 14:22

ok

Ответить
Root Level - IT Support Solutions with Jerry
Root Level - IT Support Solutions with Jerry - 03.09.2022 12:14

Thank you so much

Ответить
YamaiKaguya
YamaiKaguya - 29.07.2022 02:51

Thank you! 😊

Ответить
jetskeeter69
jetskeeter69 - 25.07.2022 09:59

Wow, that makes it all clear now. Now I know I shouldn't be abusing the ID when I work with javascript and the fact that I have should know that ID needs to be unique or that it cannot use its name multiple times. Reading about it confuses me when I only work with html and css as I can use id name multiple times.

Ответить
Alexander Repollo
Alexander Repollo - 19.07.2022 19:18

Thank you so much!, Finally I could understand th difference between them :D.

Ответить
Yass
Yass - 12.06.2022 11:18

Very helpfull! I get the ID and Class more now related to Javascript. Thank you!

Ответить
Druide
Druide - 01.06.2022 13:46

thank you

Ответить
Просто Ильдар Юлиан
Просто Ильдар Юлиан - 05.05.2022 20:20

Wow! Nice dude!

Ответить
Depelter Turbo
Depelter Turbo - 10.04.2022 00:03

Wow man it was so easy to understand. Thanks a lot.

Ответить
Gabes68
Gabes68 - 06.04.2022 17:41

thanks

Ответить
EnzoAuditore
EnzoAuditore - 26.03.2022 04:33

Thanks mate, great video.

Ответить
Tiny Mangos
Tiny Mangos - 17.03.2022 10:00

Lol, this is the best explanation i found,, althought i've been 3 years into web development i still search for this XD

Ответить
ROADMAN RECORDS
ROADMAN RECORDS - 15.02.2022 17:38

sometimes css don't recognize my class when I have to style it ? How can that be. Examble <div class="Logo"> When I type .logo{} nothing registers. Especially when I have to style multiple

Ответить
Shalom Akeda
Shalom Akeda - 11.01.2022 12:26

Thanks big help, hopefully you'd upload information on others tags to for easy reference to you. - beginner

Ответить
Tumanah Wulukau
Tumanah Wulukau - 07.11.2021 01:19

Suddenly it just became clear! Thank you !

Ответить
secre
secre - 07.09.2021 10:01

thanks! what color scheme is that?

Ответить
John Kirubainathan
John Kirubainathan - 02.09.2021 09:50

how fast are you typing oh my god

Ответить
Lacatus Eduard
Lacatus Eduard - 01.09.2021 19:48

will I get away if I use only classes?

Ответить
Sunil Sewpersadh
Sunil Sewpersadh - 24.08.2021 20:11

Great lesson, thanks

Ответить
Adam Robinson
Adam Robinson - 06.06.2021 20:37

Really helped me understand the difference as when I read about it, I didn't really understand. Cheers!

Ответить
Westmystical
Westmystical - 25.04.2021 22:55

but why

Ответить
AtTheEnd1000
AtTheEnd1000 - 09.03.2021 00:44

In a video I watched, the narator said that the ids are used less and less and that classes are becoming more used, just because you can target multiple elements. Is this true in the industry?

Ответить
Carson Beer M.V
Carson Beer M.V - 11.02.2021 15:29

Thank you so much :)

Ответить
jim smith
jim smith - 28.11.2020 15:04

Thank you, the explanation was easy to understand.

Ответить
random guy
random guy - 09.11.2020 17:55

i used same id for 3 images in a div element and it worked for all 3 elements why?

Ответить
neram classes - Tamil
neram classes - Tamil - 02.11.2020 12:48

I like the sound of the keyboard @2.03. katakatakata......

Ответить
thecubersahil
thecubersahil - 13.09.2020 18:57

Thanks Man!

Ответить
Vihanga Vimukthi
Vihanga Vimukthi - 04.07.2020 06:32

thank you , sir

Ответить
Illuminati
Illuminati - 27.05.2020 21:32

what font are you using man? It's very nice.

Ответить
CommuniTraders Live
CommuniTraders Live - 07.04.2020 15:19

Very helpful, thank you! Subbed =)

Ответить
Avery Woodlief
Avery Woodlief - 02.04.2020 19:14

got any resources for learning code? I am using w3schools and a little bit of khan academy right now

Ответить
yamacode
yamacode - 28.06.2018 12:23

which playlist is this is?

Ответить