W3 CSS Flashcards
What does CSS stand for?
Cascading Style Sheets
What is the correct HTML for referring to an external style sheet?
link rel=”stylesheet” type=”text/css” href=”mystyle.css”
Where in an HTML document is the correct place to refer to an external style sheet?
In the section head section
Which HTML tag is used to define an internal style sheet?
style
Which HTML attribute is used to define inline styles?
style
Which is the correct CSS syntax?
body {color: black}
How do you insert a comment in a CSS file?
/* this is a comment */
Which property is used to change the background color?
background-color:
How do you add a background color for all <h1> elements?
h1 {background-color:#FFFFFF}
How do you change the text color of an element?
color:
Which CSS property controls the text size?
font-size
What is the correct CSS syntax for making all the <p> elements bold?
p {font-weight:bold}
How do you display hyperlinks without an underline?
a {text-decoration:none}
How do you make each word in a text start with a capital letter?
text-transform:capitalize
How do you change the font of an element?
font-family: