Lesson 3A

Ace your homework & exams now with Quizwiz!

Which choice correctly describes two benefits of Cascading Style Sheets (CSS

. CSS provides a template for creating pages and simplifies coding for creating pages manually.

n Cascading Style Sheets (CSS), what is a rule?

A set of values that can be applied to a given property

1. You want to create a horizontal rule on your Web page that is 10 pixels high and occupies 20 percent of the screen. You also want to ensure that the page validates as HTML5. Which line of HTML code will fulfill these requirements?

<hr style=height=10 width=20%/>

Sage is developing Web pages in HTML5. She plans to format the pages using Cascading Style Sheets (CSS). Which line of code uses the correct syntax to apply an external CSS style sheet to HTML documents?

<link rel="stylesheet" type="text/css" href="format/styles.css"/>

Which of the following is a valid HTML reference to a CSS file?

<stylesheet="text/css" title="syb/syb.css" href="stylesheet"/>

Why is this change required to make your code validate?

Because HTML5 requires the alt attribute to locate the image by its alternative file name

Using a linked style sheet, you have modified the look and feel of an HTML page. You noticed that the rules you applied remain in force unless explicitly overruled using other styles. Which term describes this phenomenon?

Inheritance

You are formatting a Web site using CSS. You are using several types of styles on various pages, including embedded styles, external styles and inline styles. Which choice describes a correct order of precedence for implementing CSS

Internal (embedded) styles override inline styles.

1. Consider the following Cascading Style Sheets (CSS) rule: body {background-color:lightblue;} Which is the "selector" portion of this rule?

The portion that reads "background-color"

Consider the following Cascading Style Sheets (CSS) rule: body {color: teal;} Which is the "declaration" portion of this rule?

The portion that reads "color"

consider the following Cascading Style Sheets (CSS) rule: body {color: teal;} Which is the "property" portion of this rule?

The portion that reads "color"

Consider the following code in a CSS document: h1 { font-family:arial, sans-serif; color:black; font-size:32 px; } Why will this code not render properly in a Web browser?

Which of the following is a valid HTML reference to a CSS file?

You are developing new Web pages for your site using HTML5 and Cascading Style Sheets (CSS). Which Web-based validation tool can you use to validate your CSS code?

www.validator.w3.org

Which property should you use in the body selector in an external CSS file to specify an image for a page background?

background-color

Consider the following HTML code: <h1> Welcome to the Habitat for Humanity Web Site </h1> <hr/> <p> Habitat for Humanity is a not-for-profit organization that provides decent, affordable housing. </p> What is the default width of the horizontal line created on this page?

100 percent

Why is it important to limit words to clear, necessary verbiage on your Web pages, especially on the home page?

Because navigation aids should occupy most of the space on Web pages

7. You are developing Web pages in HTML5. You plan to format the pages using Cascading Style Sheets (CSS). HTML5 supports which CSS standard(s)?

CSS1 and CSS2 standards only

You can use a CSS style sheet rule to override the default <body> font color, which is black. Which term is used to describe this style sheet behavior?

Hierarchy


Related study sets

Section 2 - Managers, leadership and decision making ✓

View Set

Chapter 1: Introduction the Nature of Science and Physics - Conceptual Questions

View Set

Health Knowledge Test (E) whole school, whole community, whole child

View Set

Intro to Marketing - Chap. 13/Personal Selling Portion

View Set

ECOLOGY STUDY GUIDE: What is Ecology?

View Set

Lecture 4: Marketing Strategies for New Market Entries

View Set

TERP10 - Unit 6: Plan-to-Produce Processing

View Set

Fundamentals of nursing test #2 ch. 30, 31, 41, 44, 49

View Set