🎯CSS Selector: Class vs ID vs Tag ✨ #codewithkg #coding #javascript

preview_player
Показать описание
In this video, we cover the essential differences between CSS selectors: class, ID, and tag. Whether you're preparing for a web development interview or just brushing up on your CSS knowledge, understanding these selectors is crucial! Watch now and master the basics to ace your next coding interview. 💻

#CSS #WebDevelopment #FrontendInterview #InterviewPrep #codewithkg #WebDesign
Рекомендации по теме
Комментарии
Автор

1. apply the styles using div tag selector then style will be apply all div containers

2. apply styles using class selector to 2nd and 4th containers

3. using id selector apply the styles to 3rd container

Above styles will be applies by specificity

yenuguchandukumarreddy
Автор

1, 5 assign same class
2, 4 same class
3 give an id

maheshmasz
Автор

1, 5 we will take same class element(color:green)
2, 4 we can take class elements(color:orange)
3 id or class. (Color:red)

ShaikroshanZameer
Автор

1 st and 5th same class name ..
2 nd and 4th has same class name
3rd has seperate class name

Introvert.
welcome to shbcf.ru