Comment
noun
say it: “KOM-ent” /ˈkɑmɛnt/
A note in your code that the computer skips. In CSS it starts with /* and ends with */, and you use it to explain a rule or switch one off for a moment.
How do you write a comment in CSS?
A comment is a note for people reading the code. CSS ignores anything between /* and */.
/* Brand colors for the checkout page */
.checkout-button { background: #0a7; }
In a sentence
- “I left a comment above the rule saying the orange matches the taco truck's sign.”
Level: Novice · More CSS terms at this level
Updated