Css Syntax Flashcards
What does CSS stand for?
Cascading Style Sheets
What symbol is used to denote a CSS comment?
/* */
How do you select an element by its ID in CSS?
elementID
What property is used to change the font size of an element?
font-size
True or False: CSS properties are case-sensitive.
True
What is the CSS property used to set the background color of an element?
background-color
In CSS, how can you group multiple selectors together to apply the same styles?
Separate selectors with a comma
What property is used to change the color of text in an element?
color
What is the CSS property used to set the width of an element?
width
What symbol is used to select all elements on a webpage in CSS?
*
What is the CSS property used to set the text alignment within an element?
text-align
How do you include an external CSS file in your HTML document?
<link></link>
What is the CSS property used to set the height of an element?
height
What is the default value of the display property in CSS?
block
In CSS, how can you target all elements of a specific class?
.className