- Inline CSS – written inside HTML tags.
- Internal CSS – inside
<style>
in the HTML<head>
. - External CSS – in a separate
.css
file (best practice).
Category: Interview Questions
-
What are the types of CSS?
-
What is CSS?
CSS (Cascading Style Sheets) is used to style and format HTML elements (colors, fonts, layouts, responsiveness)
- Example:
p { color: blue; font-size: 18px; }