Interview Question

How do you add CSS to HTML?

Link an external CSS file for clean, reusable styling.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

CSS can be added inline, in a `<style>` block, or through an external stylesheet. • External CSS is best for most websites because many pages can share it. • Prefer native HTML elements before adding custom scripted behavior. • Test the result with a keyboard, a small screen, and browser developer tools.

💡 Simple Example

<link rel="stylesheet" href="styles.css">

⚡ Quick Revision

Link an external CSS file for clean, reusable styling.