CSS Flashcards
Which is the correct way of changing the colour of a heading using CSS?
1.H1
{
black:
{
2.H1
}
color:black;
}
3. {H1
color;black}
H1
{
color:black;
}
What does CSS mean?
Cascading style sheet
What is the purpose of CSS?
How the web pages look such as color, font and layout
What is an ID selector?
A selector that identifies only one element within a HTML document Preceded by a # sign
What is the value?
The part of the CSS rule which specifies how the property/attribute will be modified.
What is the declaration?
Property name and value separated by a colon and terminated with a semicolon, for example… Font-family:sans serif;
What is an external style sheet?
A text file that contains style declarations
What is a class selector?
A selector that applies the same attribute to multiple HTML elements that reference it. Preceded by a. (full stop)
What is a syntax
Arrangement of words and symbols in a language
What is inline CSS style?
CSS code in the body of the HTML attribute <h1
style="color:black;"> in a HTML tag. Limited to styling one element at a time.
What is internal CSS style?
CSS coded in the head of the HTML code inside of <style> </style> tags. Limited to that one HTML page. (Also known as embedded)
What does the background color property do?
Configures the background colour of an element
What are the CSS rules?
A complete CSS style statement: selector, property and value
How do you add a boarder in CSS?
{
border: 5px solid white;
}
You have to state the size of the border, the style you want it to be for eg solid or dotted line and the color you want