Loading

Quipoin Menu

Learn • Practice • Grow

css / Inline CSS
interview

Q1. What is inline CSS?
Inline CSS uses style attribute directly on HTML elements.

Q2. What is specificity of inline CSS?
Highest specificity (1000), overrides internal and external styles.

Q3. When might inline CSS be appropriate?
Quick testing, debugging, HTML emails, or dynamic style changes with JavaScript.

Q4. What are disadvantages of inline CSS?
Hard to maintain, not reusable, mixes content with presentation, increases HTML size.

Q5. Can inline CSS use pseudo-classes?
No, pseudo-classes like :hover cannot be used with inline CSS.