Saturday, July 1, 2017

Explain about CSS Comments with example.

CSS Comments

1.Basically Comments are used to explain the code, and may help when anybody edits the source code at a later date.
2.Comments are ignored by browsers.
3.A CSS comment starts with /* and ends with */. Comments can also span multiple lines:

Example

p {
    color: blue;
    /* This is a single-line comment */
    text-align: center;
}

/* This is
a multi-line
comment */