When developing a website or web application, it's important to keep in mind the difference between an ID and a Class, and to know when to use each one and why.
The primary thing to remember about this is that you should be using an ID for a unique element that only exists once on the document whereas classes are more appropriate for multiple elements that serve the same purpose.
In this video I take you through this topic and how it affects not only your HTML markup but also your CSS code and JavaScript.
For your reference, check this out:
https://css-tricks.com/the-difference...
Support me on Patreon:
/ dcode
Follow me on Twitter @dcode!
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Смотрите видео What's the difference between IDs & Classes? | HTML, CSS & JavaScript онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь dcode 09 Июнь 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 71,27 раз и оно понравилось 1.2 тысяч людям.