3 ms·
>>Quotes are optional in CSS. You should use single quotes as it is visually clearer that the string is not a selector or a style property. / * wrong * / .avat
by TheBiv 11y ago
>>Quotes are optional in CSS. You should use single quotes as it is visually clearer that the string is not a selector or a style property.
/ * wrong * /
.avatar {
background-image: url('/img/you.jpg');
font-family: 'Helvetica Neue Light', Helvetica Neue, Helvetica, Arial;
}
/ * right * /
.avatar {
background-image: url(/img/you.jpg);
font-family: Helvetica Neue Light, Helvetica Neue, Helvetica, Arial;
}
It looks like their right/wrong answers are opposite
Edit: It has now been changed, thank you OP! Great list!
- grvcoelho 11y agoTKS and FIXed