This forum is now read-only. Please use our new forums at discuss.codecademy.com.

CSS: An Overview Forum

View Course » View Exercise

1198 points
6f39b23727166927c549080f4252c6eb?s=140&d=retro
Submitted by
SatoKahn
about 3 years ago

Exercise -- "Backup Values": Does capitalization matter here?

I noticed that in the css stylesheet, the default fonts of 'serif', 'sans-serif', and 'cursive' are all left lowercase. And 'Times', 'Verdana', and 'Vivaldi' are all capitalized. Why is this? Is it necessary to remember which fonts are capitalized and which are left lowercase? Also, does anyone else's h3 css leave Vivaldi and cursive white as opposed to orange like the css for h1 and h2? Hope that wasn't too confusing a question. Thanks!


3 votes

permalink

nah, browsers are smart these days, it is recommended to pay attention to the capitalized first letter but it will work without capitalized letter. (don't try to remember what font-family's are capitalized, there are more important to remember, you can always look up the font-familys)

Yes, h3 font-family stay white, not sure why, good question. Maybe not installed on you computer? (font-familys are client inside) so it doenst recognize and doesnt add color)

2410 points
5671826195e378c47d000782_659060817
Submitted by
stetim94
about 3 years ago

2 Comments

6f39b23727166927c549080f4252c6eb?s=140&d=retro SatoKahn about 3 years ago

Excellent answer here. Thanks, stetim94.

5671826195e378c47d000782_659060817 stetim94 about 3 years ago

no problem