Css,Html

What happens if we try to apply class and id to one element? Pls help me xD

1 Like

both class and id css rules get applied. But what about css properties? The css property/rule of the id gets applied, given id has a higher specificity.

3 Likes

Thank you very much …

1 Like