CSS Flashcards
How do you use inline style declaration?
style=””
What should you end an inline style declaration with?
;
How do you set the colour of an element?
color=””
Where do CSS selectors go?
the style tag
What does a CSS selector look like?
tag {
style;
}
What does a CSS class declaration look like?
.class-name {
styles;
}
How do you apply a CSS class to a tag?
class=””
How do you change the font size property?
font-size: (number)px;
How do you change the font property
font-family: font;
How do you add a “backup” font if the first is unavailable
font-family: font, backup font;
How do you set a tag’s width?
width: (number)px;
How do you add rounded corners to a border?
border-radius: (number)px;
How do you make an image circular?
border-radius: 50%;
How do you give an element a background
background-color: color;
True or False, id attributes are required to be unique
False
Though they are not required to be unique it is considered best practice to make them unique