HTML and CSS Reference
In-Depth Information
5. Which of the following associates a Web page
with an external style sheet?
a. <style rel="external" href="style.css">
b. <style src="style.css">
c. <link rel="stylesheet"
type="text/css" href="style.css" />
d. <link rel="stylesheet"
type="text/css" src="style.css" />
10. Which of the following configures a class called
news with red text, large font, and Arial or a
sans-serif font using CSS?
a. news { color: red;
font-size: large;
font-family: Arial,
sans-serif;}
b. .news { color: red;
font-size: large;
font-family: Arial,
sans-serif;}
c. . news { text: red;
font-size: large;
font-family: Arial,
sans-serif;}
d. #news { text: red;
font-size: large;
font-family: Arial,
sans-serif;}
6. Which of the following is the declaration prop-
erty used to set the font typeface for an area of a
Web page?
a. font-face
b. face
c. font-family
d. size
7. Which of the following do you configure to
apply a style to only one area on a Web page?
a. group
b. class
c. id
d. none of the above
Fill in the Blank
11. The ____________________ element is useful for
creating logical areas on a Web page that are
embedded within paragraphs or other block for-
matting elements.
8. Where do you place the code to associate a Web
page with an external style sheet?
a. in the external style sheet
b. in the DOCTYPE of the Web page document
c. in the body section of the Web page document
d. in the head section of the Web page document
12. CSS is a technology that is
____________________ supported by browsers.
13. The ____________________ CSS property can be
used to center text on a Web page.
9. Which of the following configures a background
color of #FFF8DC for a Web page using CSS?
a. body { background-color: #FFF8DC; }
b. document { background: #FFF8DC; }
c. body {bgcolor: #FFF8DC;}
d. none of the above
14. The ____________________ element is useful for
creating areas on a Web page that are physically
separated from other areas.
15. CSS was first proposed as a standard by the
W3C in ____________________.
Apply Your Knowledge
1. Predict the Result. Draw and write a brief description of the Web page that will be
created with the following XHTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Predict the Result</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css">
 
Search WWH ::




Custom Search