CSS Flashcards
What is CSS?
Cascading style sheets
What is CSS for?
decides how your HTML should look like.
What can CSS do for us?
Add colors, change shapes and layout, and add animation.
What is a selector?
used to select the HTML element to be styled.
Selector is “what to do”. True or false?
False.
Declarations in CSS is “where to do”. True or false?
False.
p{ font-size: 25px; } which one of these is the declaration?
font-size: 25px
What is not part of CSS syntax?
HTML tags
What are the three ways to apply CSS?
Inline CSS, Internal CSS, External CSS
Inline CSS is to write CSS within HTML tags. True or False?
True
Internal CSS is to write CSS in a separate file with the .css extension.
False
How do you apply external CSS?
you have to write it in a separate file with the .css extension
Can you include all three ways?
Yes it is possible.
Inline CSS has the highest precedence. True or false?
True
The precedence of Internal and External CSS depends on the order of which you specify them inside the head tag. True or false?
True
CSS always reads from bottom to top. True or false?
False. It reads from top to bottom.
What is Element selector?
use of the HTML element name.
Class selector is specified using the class attribute. True or false?
True
ID selector does not really have to be unique. True or false?
False
Who gives the class/id name?
The programmer
What is the most recommended way to apply CSS?
External CSS
How do you write CSS comments?
/* comment */
What is a semantic sectioning element?
A sectioning element used to section a specific part.
What is a non-semantic sectioning element?
Sectioning element that is not that specific and can be used to section any part with the same outcome.
div is a semantic sectioning element if it has a class. True or false?
False
the main element is a semantic sectioning element. True or false?
True
The main element can be used twice. True or false?
False. It can be used no more than once.
What is a color scheme?
a specific set of colors or theme for a webpage.
Define padding.
Padding is the space between the content and its border.
Define margin.
The space between content and other content.
What is a short-hand property?
A short cut in writing code. To be specific, it is a short cut in writing CSS.