Languages
[Edit]
EN

CSS - comments

0 points
Created by:
James-Z
337

In this article, we would like to show you how to comment in CSS.

Quick solution:

div { 
  background: red;  /* This is CSS comment. */
}

 

Practical example

In this section, we present a practical example of how to use CSS comments.

// ONLINE-RUNNER:browser;

<!doctype html>
<html>
<head>
  <style>

    .default { 
      font-size: large;  /* This is CSS comment. */
    }

  </style>
</head>
<body>
  <div class="default">Example text...</div>
</body>
</html>
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join