- Home
- /
- Questions
CSS Tutorial
Introduction
CSS Properties
CSS Designing
CSS Advance Topics
CSS FAQs
- Home
- /
- Questions
CSS Questions
1. Is CSS case-sensitive?
No, CSS itself is not case-sensitive. You can write COLOR
, color
, or Color
—they all work. However, file names, URLs, and image paths are case-sensitive, so background-image: url(banner.PNG)
is different from url(Banner.png)
.
2. How can I add comments in CSS?
Absolutely! Comments are written like this:
/* This is a CSS comment */
They help you organize your code without affecting the output. In VS Code, just press Ctrl + /
to quickly comment or uncomment lines.
3. Why is my CSS not showing up?
There could be a few reasons:
The CSS file is not properly linked in your HTML.
The file path is incorrect (double-check directory names).
CSS rules are being overridden by more specific selectors or inline styles.
Use the browser’s Inspect tool (right-click → Inspect) to debug and find what’s actually applied.
4. What's the correct order of CSS application?
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
JavaScript (manipulates styles) >
Inline CSS (style="") >
Internal CSS (