CSS Properties
Styles
Styles II
CSS Basics
CSS Fundamentals
100

The following code snippets shows the correct way to apply a_________

body { background-image: url("bg.gif"); }

What is background image?

100

Where would you typically find an internal stylesheet?

What is the head section?

100

To adjust the boldness of text, which property is most commonly used?

What is Font Awesome? 

100

This is the backup or default font in case the browser does not support the first font choice.

What is Arial?

100

Given the CSS rule p { color: red; }, what does p represent?

What is selector?
200

This property is used to set the text color in CSS

What is color?

200

If you wanted to set a background color to an element with a CSS color value of rgb(245, 245, 220), which common color name could also be used?

What is beige?

200

Internal styles are written within the _____ element

What is the style element?

200

Which of the following is a correct way to comment out multiple lines in a HTML file?

What is <!--  -->?

200

This is a model that includes padding, border, margin, and content. 

What is CSS box model

300

This property is used to specify the weight or thickness of characters in text

What is font-weight?

300

What would you use to link to an external stylesheet in an HTML document?

What is link rel?

300

This method of adding CSS directly affects a single HTML element's style attribute?

What is Inline CSS?

300

Which of the following is a correct way to comment out multiple lines in a CSS file?

What is /* */?

300

This controls the styling of elements described within the HTML document

What is CSS?

400

Which CSS property sets the space inside an element, between its content and its border?

What is padding?

400

What is the name of the CSS for the following code: <p style="color: red; background-color: green;">

What is inline?

400

The code below is and example of which CSS style that you link to an  in an HTML document?

<link rel='stylesheet' type='text/html' href='styles.css'>

What is external stylesheet?

400

The following best code represents the basic structure of a________:

selector { property: value; }

What is CSS rule?

400

This CSS selector is used If we want to define style for a unique element.

What is id?

500

Which of the following properties controls the space outside the element, between it and any neighboring elements?

What is Margin?

500

The code below is intended to reference an _____________   ___________.

<link rel="stylesheet" href="stylesheet.css">  

What is external stylesheet?

500

If you want to apply styles to a class named 'highlight', which of the following selectors should you use?

What is .highlight

500

The code below will affect which element?

#header1 {text-align: left;

    color: red; }

What is header1?

500


If you want to style the first line of a paragraph differently from the rest, which pseudo-element would you use?

What is :first-line?