Quiz 1.2

0/0

Which statement is true based on this snippet of CSS:

.name{
   color:red;
}

Color changes the background-color

"red" is the property

".name" is a class

There should not be a semi-colon

Color changes the font color, not the background color

"red" is a value, not a property.

There should always be a semi colon at the end of every CSS declaration

How does one select an element with the ID of 'wrapper'?

.wrapper

$wrapper

@wrapper

#wrapper

The period is used for selecting classes.

The $ sign is used in attribute selecting (more on this later)

The @ sign is used for media queries (more on this later)

The # is used for ID selections

How does one select an element with the class of 'wrapper'?

.wrapper

$wrapper

@wrapper

#wrapper

The period is used for selecting classes.

The $ sign is used in attribute selecting (more on this later)

The @ sign is used for media queries (more on this later)

The # is used for ID selections

What kind of selector is ':hover:?

Fake Class

Pseudo Class

Hard Class

Soft Class

How would you select an element that has both the class of 'box' and the class of 'wrapper'?

.box.wrapper

.box .wrapper

.box + .wrapper

.box & .wrapper

This is used to select a element with the class of 'wrapper' INSIDE the element with the class of 'box'

This is the sibling selector, not selecting an item with both classes.

What are the 4 values used for position in CSS?

initial, total, complete and fixed

initial, relative, complete and absolute

initial, relative, absolute and fixed

initial, index, relative and absolute

What is the biggest thing you should be most mindful of when using position:absolute?

The positioned element will change colors.

The positioned element will ignore almost all your CSS.

The positioned element will switch CSS with other positioned elements.

The positioned element will align itself to it's nearest positioned parent.

How do you change the opacity of an element to 78%?

opacity:78%;

opacity:78;

opacity:0.78;

opacity:level(78);

What is the biggest difference between margin and padding?

Padding supports background-color, margin does not.

Padding scales, margin does not.

Padding has an upper limit, margin does not.

Padding only works in pixels, margin does not.

Both can scale if coded accordingly.

Neither has an upper limit to speak of.

Both can accept any unit of measurement that the other can take.

What is the correct way to read this CSS declaration?

padding:15px 0px 10px 0px;

15px top, 0px bottom, 10px left, 0px right

15px top, 10px bottom, 0px left and right

15px top, 0px left and right, 10px bottom, 0px border

15px left, 0px top, 10px right, 0px bottom

The order is top, right, bottom left.

The order is top, right, bottom left.

The order is top, right, bottom left.

The order is top, right, bottom left.

You got

Next

Back to Class Files Retake Quiz