0 0
Read Time:25 Second
  • Comments are used to explain the code, and may help when you edit the source code at a later date.
  • Comments are ignored by browsers.
  • A CSS comment is placed inside the <style> element, and starts with /* and ends with */:
/* This is a single-line comment */
p {
  color: red;
}

You can add comments wherever you want in the code:

p {
  color: red;  /* Set text color to red */
}

Comments can also span multiple lines: 

/* This is
a multi-line
comment */

p {
  color: red;
}
See also  CBSE Class 9 Computer Applications Syllabus 2022-2023
See also  Languages Class 9th and 10th CBSE Curriculum 2022-23
Happy
Happy
%
Sad
Sad
%
Excited
Excited
%
Sleepy
Sleepy
%
Angry
Angry
%
Surprise
Surprise
%