+ 1
Which one gets the highest priority: class or id?
Suppose I have given class and id both the attribute to p tag (<p class="style1" id="style2">) and applied different styles in style1 and style2, which one will affect the document.
1 Respuesta
+ 4
ID has a higher priority, you can find all of the priority levels online, you can also change them manually.