Community
What type of language is CSS?
A. Markup language
B. Styling language
C. Programming language
What is B. Styling language?
What does CSS stand for?
CSS is similar to the __________ of a web page. Why?
What is clothes? Because it controls the way the website looks
What CSS selector should you use to group the same/similar elements with the same styles?
What is Class?
True or False? Each ID has a specific set of CSS attributes that only apply to that one element.
What is True?
What is the value in this CSS code?
p {color: red;}
red
What symbol goes around each CSS selector?
{ }
What is the property in this CSS code?
p {font-size: 10px;}
font-size
Where can you find your style sheet?
Left side of screen; style.css
If you have more than one property for a CSS selector, what character separates them?
; (semicolon)
How are rule sets closed?
; semicolon
What is the selector for a link (hyperlink)?
a { }
Name two ways you can add CSS to your web page.
What is inline styles / internal stylesheet / external stylesheet ? (Any combination of two)
Where in the Html document is the correct location to insert code to link to your external CSS?
In the <head> section
Give 2 examples of a border-style.
dotted, double, solid, dashed
This CSS code is correct (True or False).
a {color: blue;}
True
This code is correct (True or False):
body {background-color="red"'}
What is False?
Name Six CSS Properties
What is font, font-family, color, background-color, height, width, text-decoration, font-size, padding, margin, etc. ?
What is wrong with this code?
body {color=black;}
Should have : instead of =
What is the selector in this code?
img {width: 100px;}
img
What block of code is adding a red background color to an element with the ID name warning?
A. .warning {background-color: red;}
B. #warning {background-color: red;}
C. warning {background-color: red;}
What is B?
What is the code for a comment in CSS?
/*comment*/
How do you link your CSS to your HTML page?
<link rel="stylesheet" href="style.css">
How are numbers measured in CSS code?
What is pixels, px, or em? (Any one)
Using CSS, how would you center text?
{text-align: center;}