Name:     ID: 
 
    Email: 

HTML Project 7 Working with Style Sheets

True/False
Indicate whether the sentence or statement is true or false.
 

1. 

A style sheet allows you to alter the appearance of a Web page by changing characteristics such as font family and font size.
 

2. 

Unlike HTML, style sheets do not adhere to a common language with set standards and rules.
 

3. 

With an embedded style sheet, you add the style sheet within the <HEAD> tags of the HTML document to define the style for an entire Web page.
 

4. 

External style sheets override embedded and inline style sheets.
 

5. 

In the declaration, STYLE="font-style:italic; color:navy", two property-value statements specify that the element should display in italic and navy font.
 

6. 

Inline style sheets, or ISS, is the name of the language that allows a Web developer to write code statements that control the style of elements on a Web page.
 

7. 

When style sheets are incorporated in a Web design, the pages use the default font, link, and margin styles.
 

8. 

The part of the style statement that identifies the page elements is called the declaration.
 

9. 

Each main style sheet property has one related option that can be controlled with a value.
 

10. 

Inline style sheets are helpful when one section of a Web page needs to have a different style than the rest of the page.
 

11. 

To add an inline style sheet, insert a start <STYLE> tag at the top of the Web page within the <HEAD> tags that define the header section.
 

12. 

Adding indentation to text in a paragraph gives Web pages a cleaner look by ensuring that the text does not run up against the left side of the Web page.
 

13. 

Inline style sheets are the most comprehensive form of style sheet and can be used to control the consistency and look of many Web pages within a Web site.
 

14. 

After adding a style sheet and saving the HTML file, you should view the file in your browser to confirm that the styles display correctly in the Web page.
 

15. 

You use the <COPY> tag to link a file with the extension, .css, to any Web pages to which you want to apply the style.
 

Multiple Choice
Identify the letter of the choice that best completes the statement or answers the question.
 

16. 

Which of the following is not a property that can be applied to an element?
a.
10%
b.
color
c.
border-width
d.
font style
 

17. 

Which of the following changes the style of multiple pages in a Web site?
a.
embedded style sheets
b.
external style sheets
c.
inline style sheets
d.
none of the above
 

18. 

Which of the following is a valid value for the font style property?
a.
4 pt
b.
navy
c.
50%
d.
none of the above
 

19. 

Which of the following style sheets has the second highest level of precedence?
a.
embedded
b.
inline
c.
external
d.
none of the above
 

20. 

Within which of the following should a <LINK> tag be inserted to apply the styles in an external style sheet to a Web page?
a.
HTML file
b.
<STYLE> tags of the Web page
c.
<HEAD> tags of the Web page
d.
.css file
 

21. 

Which of the following is a rule that defines the appearance of an element on a Web page?
a.
font
b.
cascade
c.
style sheet
d.
all of the above
 

22. 

Which of the following is included in a style statement?
a.
declaration
b.
selector
c.
both a. and b.
d.
neither a. nor b.
 

23. 

Which of the following overrides external style sheets?
a.
inline style sheets
b.
embedded style sheets
c.
fixed style sheets
d.
both a. and b.
 

24. 

Which of the following changes the style of one Web page?
a.
embedded style sheets
b.
external style sheets
c.
inline style sheets
d.
none of the above
 

25. 

Which of the following changes the style within an individual HTML tag?
a.
embedded style sheets
b.
external style sheets
c.
tag style sheets
d.
none of the above
 

26. 

Within the STYLE tag container, Web developers commonly agree to add which of the following to ensure that proper action is taken if a browser does not support CSS?
a.
superscript tags
b.
HTML comment code
c.
line-through properties
d.
ESC tag
 

27. 

Setting which of the following properties to a value of none will remove the underline from all links?
a.
blink
b.
text-decoration
c.
color style
d.
font family
 

28. 

Which of the following properties allows you to define a font for use in a Web page?
a.
text decoration
b.
font size
c.
font family
d.
color styles
 

29. 

Which of the following is used to link an external style sheet to the Web pages to which you want to apply the style?
a.
<COPY> tag
b.
<SAVE> tag
c.
<LINK> tag
d.
<FIND> tag
 

30. 

Which of the following is the default for the font-style property?
a.
normal
b.
oblique
c.
bold
d.
underline
 

31. 

Which of the following generally contains the frame layout for a Web site?
a.
the frame definition file
b.
the Web page called index.htm
c.
both a. and b.
d.
neither a. nor b.
 

32. 

Which of the following Web page files generally provides links to all other Web pages in a Web site?
a.
contact.htm
b.
services.htm
c.
index.htm
d.
menu.htm
 

33. 

Which of the following properties defines the amount of transparent space between elements on the page?
a.
width
b.
margin
c.
paragraph
d.
spacing
 

34. 

Which of the following style sheets utilizes classes?
a.
embedded
b.
inline
c.
paragraph
d.
all of the above
 

35. 

Which of the following allows you to view HTML source code when you are viewing a Web page in your browser?
a.
clicking the Web page and then clicking Source Code on the shortcut menu
b.
right-clicking the Web page and then clicking View Source on the shortcut menu
c.
clicking File on the menu bar and then clicking Notepad
d.
none of the above
 

Completion
Complete each sentence or statement.
 

36. 

CSS is an acronym for ______________________.
 

 

37. 

______________________ style sheets give Web developers the most flexibility and are ideal to give all Web pages the same look.
 

 

38. 

External style sheets should be saved as text files with a(n) ______________________ extension.
 

 

39. 

A(n) ______________________ style sheet needs <STYLE> tags to start and end the style sheet.
 

 

40. 

The TH selector identifies a(n) ______________________.
 

 

41. 

___________________________ defines the specifications for CSS.
 

 

42. 

The percentage option can be controlled within the ______________________ property.
 

 

43. 

Color, image, and position are options that can be controlled within the ______________________ property.
 

 

44. 

A(n) ______________________ font is one that is slated to the right by the browser.
 

 

45. 

Links have three states: visited, active and ______________________.
 

 

46. 

The ______________________ property defines the way a link displays when a mouse pointer points to a link.
 

 

47. 

The ______________________ is the part of the style statement that identifies how the elements should display.
 

 

48. 

The ______________________ file contains the frame layout for a Web site.
 

 

49. 

To print an HTML file, click File on the Notepad ______________________, and then click Print.
 

 

50. 

In a style sheet using classes, the tag and the classname are separated by a(n) ______________________.
 

 



 
Submit          Reset Help