HTML5 APPLICATIONS DEVELOPMENT MANUAL

(lu) #1

Content between / and / in a CSS file is called a comment. It’s a


note inserted by the developer for informational purposes only and it doesn’t


affect the CSS or Web page.


Comments can appear anywhere in a style sheet.


/These comments are typically reserved for making multi-line comments/
p {
color: red;
/ This is a single-line comment /
text-align: center;


Fonts and Font Families


A font is a set of characters of a particular size and style. The primary


way to specify fonts in CSS is by using the font-family property. Three


common types of fonts are serif, sans serif, and monospace.


@font-face rule


Web fonts allow Web designers to use fonts that are not installed on


the user's computer.


When you have found/bought the font you wish to use, just include


the font file on your web server, and it will be automatically downloaded to


the user when needed.


Your "own" fonts are defined within the CSS3 @font-face rule.

Free download pdf