Properties
Properties
font-size
,
font-style
,
font-weight
,
font-family
,
font
p {
font-size: 20px;
font-style: italic;
font-weight: bold;
font-family: Times;
}
<body>
<p>Lorem ipsum dolor</p>
</body>
Output:
Lorem ipsum dolor
Shorthand Properties
p {
font: italic bold 20px Times;
}
<body>
<p>Lorem ipsum dolor</p>
</body>
Output:
Lorem ipsum dolor
Other Properties
References
- Properties:
- Doc: WP, MDN e W3C
- Cheat Sheet: smashing (pdf), w3school, tutorialspoint, 1stwebdesigner
- Doc: WP, MDN e W3C
- Color
- Color Table
- CSS values and units | MDN (Numeric values, Percentages, Colors, Coordinate positions, Functions)
- Value definition syntax | MDN