Getting More Advanced With Design - Typography Cheatsheet - Codecademy
Getting More Advanced With Design - Typography Cheatsheet - Codecademy
Typography
CSS font-weight Property
The CSS font-weight property declares how
thick or thin should be the characters of a text. /* Sets the text as bolder. */
Numerical values can be used with this property to set p {
the thickness of the text. The numeric scale range of font-weight: 700;
this property is from 100 to 900 and accepts only }
multiples of 100. The default value is normal while
the default numerical value is 400 . Any value less
than 400 will have text appear lighter than the
default while any numerical value greater than the
400 will appear bolder.
In the given example, all the <p> elements will
appear in a bolder font.
/
CSS Linking fonts
Linking fonts allow user to use web fonts in the
document. They can be imported in an HTML <head>
document by using the <link> tag. Once the web <link
font URL is placed within the href attribute, the href="https://fonts.googleapis.com/css?
imported font can then be used in CSS declaration. family=Droid+Serif" rel="stylesheet">
</head>