CSS Specificity
Which CSS selector has the highest specificity?
- An element selector
- A class selector
- An ID selector
- An attribute selector
- A tag selector
CSS Box Model
What property controls the space between the element's content and its border?
- Margin
- Border
- Padding
- Spacing
- Indent
CSS Display Property
Which display property makes an element generate a block element box, filling the entire width available?
- inline
- block
- inline-block
- none
- flex
CSS Positioning
What is the default value of the 'position' property in CSS?
- relative
- absolute
- fixed
- static
- sticky
CSS Selectors
Which selector is used to select all elements of a specific type?
- .element
- #element
- element
- *
- [element]
CSS Cascading
In CSS, what determines which styles are applied when multiple rules conflict?
- The order they are defined in the HTML
- The file size of the CSS document
- The specificity of the selectors
- The number of properties in the rule
- The rule declared first
CSS Font Property
Which CSS property is used to control the boldness of text?
- text-weight
- font-style
- font-size
- font-weight
- line-height
CSS Colors
Which of the following is a valid way to define a color in CSS?
- color: #00FF00;
- color: green;
- color: rgb(0, 255, 0);
- All of the above
- None of the above
CSS Units
Which CSS unit is relative to the font size of the root element?
- em
- rem
- vh
- vw
- px
CSS Inheritance
What happens to CSS properties that are not inherited by default?
- They are ignored
- They are inherited from the parent element
- They use the browser's default value
- They use a predefined 'auto' value
- They cause an error