What is the font property and how do you use it?

What will be an ideal response?


The font property is a shortcut that lets you specify the most common font properties in a single statement. The syntax of this property is based on a traditional typographical shorthand notation to set multiple properties related to fonts. The font property lets you state the font-style, font-variant, font-weight, font-size, line-height, and font-family in one statement. The only two required values are font-size and font-family, which must be in the correct orderfor the style rule to work. The following rules are basic examples of using the font property: p {font: 12pt arial, sans-serif;}h1 {font: 2em sans-serif;}

Computer Science & Information Technology

You might also like to view...

Consider a class RatingScore that represents a numeric rating for something such as a movie. Its attributes are

• A description of what is being rated • The maximum possible rating • The rating It will have methods to • Get the rating from a user • Return the maximum rating possible • Return the rating • Return a string showing the rating in a format suitable for display a. Write a method heading for each method. b. Write preconditions and postconditions for each method. c. Write some Java statements that test the class. d. Implement the class.

Computer Science & Information Technology

The alignment options on the Table Tools Layout tab adjust the position of the table within the slide

Indicate whether the statement is true or false

Computer Science & Information Technology

A(n) ____________________ is a small card containing one or more flash memory chips, a controller chip, other electrical components, and metal contacts to connect the card to the device or reader being used.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

The goal of redundancy is to reduce what variable?

A. average time between failures B. mean time to recovery C. median time to recovery D. median time between failures

Computer Science & Information Technology