Frontend tutorial for beginners
  • 👋Frontend tutorial for beginners
  • Overview
    • 🔮HTML
      • Why Learn HTML
        • HTML Editors
      • HTML Setup
      • HTML Comments
      • Basic HTML tags
      • HTML Formatting
      • HTML Images
      • HTML Tables
      • HTML Background
      • HTML Color Specification
      • HTML Font Specification
      • HTML Header
      • HTML Style Sheet
      • HTML Layout
    • 💡CSS
      • Introduction
      • CSS Syntax
      • CSS Comments
      • CSS Colors
      • CSS Fonts
      • CSS Links
      • CSS Tables
      • CSS Border
      • CSS Margins
    • 🌠JAVASCRIPT
      • ⏰Introduction
      • JavaScript Syntax
      • JavaScript Variables
      • JavaScript Operators
      • JavaScript If-else
      • JavaScript Switch-Case
      • JavaScript while loop
      • JavaScript for loop
      • JavaScript Function
      • JavaScript events
      • Javascript Cookies
      • JavaScript for in
      • JavaScript Dialogue boxes
      • JavaScript Page direct
      • JavaScript Placement
    • 📲Tutorial
      • How to create a calculator app using HTML, CSS and JavaScript
  • About me
    • 📪Author
Powered by GitBook
On this page
  1. Overview
  2. 💡CSS

CSS Comments

What are comments?

CSS comments can be added using /* and */ to add notes and explanations to your code. Comments are ignored by the browser and can be helpful for making your code easier to read and understand. For example:

/* This is a CSS comment */

selector { /* This is also a comment */ property: value; /* This is a comment at the end of a line */ }

PreviousCSS SyntaxNextCSS Colors

Last updated 2 years ago