Chapter 4 Cascading Style Sheets Basics

Ace your homework & exams now with Quizwiz!

Which of the following configures a CSS class called news with red text (#FF0000) and light gray background (#EAEAEA)?

.news { color: #FF0000; background-color: #EAEAEA; }

Which of following can be a CSS selector?

HTML element name, class name, and id name

*Where in an HTML document is the correct place to refer to an external style sheet?

In the <head> section

An External Style Sheet uses the __________ file extension

css

18. Which property is used to change the left margin of an element?

margin-left

*What is the correct CSS syntax for making all the <p> elements bold?

p {font-weight:bold;}

*What does CSS stand for?

Cascading Style Sheets

Which is the CSS property used to set the background color?

background-color

Which of the following configures a background color of #FFF8DC for a web page using CSS?

body {background-color: #FFF8DC;}

Which of the following do you configure to apply a style to more than one area on a web page?

class

10. Which CSS property is used to change the text color of an element?

color

*How do you add a background color for all <h1> elements?

h1 {background-color:#FFFFFF;}

Where do you place the code to associate a web page with an external style sheet?

in the head section of the web page document

Which type of CSS is coded in the body of the web page as an attribute of an HTML tag?

inline

Which of the following describe two components of CSS rules?

selectors and declarations

14. How do you make each word in a text start with a capital letter?

text-transform:capitalize

2. What is the correct HTML for referring to an external style sheet?

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

Which of the following associates a web page with an external style sheet?

<style src="style.css">

*Which HTML tag is used to define an internal style sheet?

<style>


Related study sets

Fast, Slow and Intermediate Fibers

View Set

Chapter 11: Congress: Balancing National Goals and Local Interests

View Set