Webdesign Unit 3

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

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

Assuming your style sheet is named mystyle.css, which of the following is correct?

True

CSS pseudo-class selectors can produce interesting typographic effects such as stylizing the first letter of a text so it appears larger with a unique font.

groups of elements

Complete this analogy: id is to individual elements as class is to—

p#alert #alert

Given the HTML <p id="alert">, which of the following CSS selectors would reference this specific element?

/* this is a comment */

How do you add a comment to your CSS code?

margin-left

How do you change the left margin of an element in CSS?

border:2px solid; border-radius:25px;

How do you display a border radius (a box with rounded corners)?

text-transform: capitalize

How do you make each word start with a capital letter?

red

If FF represent the highest value of a particular color and 00 represents the lowest value of a color, what color will this hex triplet code produce: #FF0000?

Units of measure, but "em" and "%" are relative, and "px" is absolute.

In CSS, "em", "%", and "px" are—

padding, border, margin

In the box model there are three layers surrounding content in the following order (starting with the layer closest to the content)

Value

In the preceding question, if you were to change 1em to 2em, you would be changing the—

True

One of the best ways to differentiate content is to show hierarchy by varying font size.

Focus

The :hover pseudo-class makes it possible to stylize an element differently when a mouse user is hovering over that element. Which pseudo-class makes it possible to achieve the same effect for keyboard users as they tab to an element?

text-align

The CSS property for positioning text either left, right, or center is—

oval

The border-style property can have several values but not—

red, green, blue

The hex triplet is a six-digit number, where each pair of digits represents (in order) the value of—

period

To add style to an element with a class, you preface the class in CSS with which of the following symbols?

#

To add style to an element with an id, you preface the id in CSS with which of the following symbols?

Cascading Style Sheets

What does CSS stand for?

p {font-weight:bold}

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

All of the above

When the "font-family" property has a list of fonts as its value—

font-size

Which CSS property controls the text size?

font-family

Which CSS property is used to change the font of an element?

<style>

Which HTML element is used to define an internal style sheet?

All of the above. 2

Which is a valid reason for assigning an id attribute to an HTML element?

serif

Which of the following font families has small lines or strokes that extend from the ends of characters?

sans-serif

Which of the following font families is more simple and is without small lines or strokes that extend from the ends of characters?

Changes made in one place can affect the entire site. It reduces the amount of code on various pages in the web site.

Which of the following is an advantage to using an external style sheet?

Capture your screen to an image file, then open the file in image editing software and convert the image to grey-scale.

Which of the following is techniques would help you to test the contrast between text and background?

body { font-size: 1em; }

Which of the following is the correct style declaration for setting the font size of the body element?

background-color

Which property is used to change the background color in CSS?

color

Which property is used to change the color of text in CSS?

They enable you to stylize one element nested inside another element.

Which statement is true about descendant selectors?

#000000

Black by definition has no color; its hex triplet code is which of the following?

h1 { background-color: #FF0000 }

How do you set the background color for <h1> elements?

selector, property, value

The three parts of a CSS style are:

word-spacing

Which CSS property is used to define the space between words?

letter-spacing

Which CSS property is used to define the spacing between text characters?

style

Which HTML attribute is used to set inline styles for a particular element?

body {color: black}

Which of the following uses correct CSS syntax?

#FFFFFF

White by definition has no color; its hex triplet code is which of the following?

True

You can specify one value for padding, border, or margin (for example, padding:5px) and that value will apply to all four sides of the box.


Ensembles d'études connexes

Chapter 1 Section 1.2 Types of Data

View Set

Split-Circuits+Multi-wire circuits

View Set

CNET 101 - Computer User Support I - Midterm Exam (Chapters 1-3)

View Set