#9 CSS interview Question #css #csstutorial #htmlcss #htmlcssjs

preview_player
Показать описание
#codewithpatel #interviewquestions #frontendinterview #frontenddeveloper #frontend
Рекомендации по теме
Комментарии
Автор

ID is “that” element, class is “that type of” element

donewithprecision
Автор

Like the gents said above you can style a single element with an ID but with classes you can style all elements holding that class selector. Also ID's have a higher specificity to class's

TBSA
Автор

The difference is that with id you can add style and select as object only one element meanwhile class selector may be applied to many elements of same class

Stefan
Автор

With di we can only style single item but with class we can style different items

ankitapatel
Автор

Will the person who answers correctly in the comments under your videos receive an offer?)

andrew.
Автор

The difference is that with id you can add style and select as object only one element meanwhile class selector may be applied to many elements of same class

Stefan