CSS CSS Industry Standards 2 — Questions and Answers
Question 1: Which organization is responsible for developing and maintaining the official CSS specifications?
- W3C (Correct answer)
- IETF
- ECMA International
- ISO
Correct answer: W3C
The World Wide Web Consortium (W3C) develops and maintains CSS specifications through its CSS Working Group.
Question 2: What does the BEM methodology stand for in CSS naming conventions?
- Block Element Modifier (Correct answer)
- Base Extend Mixin
- Box Element Margin
- Block Extend Module
Correct answer: Block Element Modifier
BEM stands for Block, Element, Modifier, a naming convention for writing maintainable CSS class names.
Question 3: Which CSS specification maturity level indicates a stable, finished standard?
- Recommendation (REC) (Correct answer)
- Working Draft (WD)
- Editor's Draft
- First Public Working Draft
Correct answer: Recommendation (REC)
A W3C Recommendation (REC) is the most mature, stable stage of a specification.
Question 4: What is the recommended industry practice for ensuring cross-browser compatibility of newer CSS properties?
- Use vendor prefixes or feature queries (Correct answer)
- Avoid the property entirely
- Use inline styles only
- Rely on JavaScript fallbacks for all styling
Correct answer: Use vendor prefixes or feature queries
Vendor prefixes and @supports feature queries allow safe progressive use of newer CSS features.
Question 5: Which methodology emphasizes single-responsibility, reusable utility classes applied directly in markup?
- Utility-first (e.g., Tailwind) (Correct answer)
- SMACSS
- OOCSS
- ITCSS
Correct answer: Utility-first (e.g., Tailwind)
Utility-first CSS uses small single-purpose classes composed directly in HTML.
Question 6: What is the industry-standard tool category used to automatically lint CSS for errors and style violations?
- Stylelint (Correct answer)
- Webpack
- Babel
- ESLint
Correct answer: Stylelint
Stylelint is the standard linter for catching errors and enforcing conventions in CSS.
Question 7: Why is using relative units like rem and em considered an accessibility best practice?
- They scale with user font-size preferences (Correct answer)
- They render faster than pixels
- They prevent CSS specificity issues
- They are required by HTML5
Correct answer: They scale with user font-size preferences
Relative units respect user browser font-size settings, improving accessibility for visually impaired users.
Which organization is responsible for developing and maintaining the official CSS specifications?