0
Question about CSS
so p#p01 { color:blue;} and #p01 { color:blue;} have the same results so the question is which is the correct way? With (p#p01) or without (#p01) and why is it the correct way?
5 odpowiedzi
+ 2
#p01 is correct, because css rules applyed on id have highest priority, and also you can't have multiple elements with same ID, so p#p01 is pointless.
+ 2
i think that both work. but there is just no reason to use first one
+ 1
wait p#p01 is not correct actually
0
they both displayed correctly in the test area on w3schools but thats the html tutorial and not html5. that could be why
0
yeah I didn't think so