how to comment in css code example

Example 1: comment tags

<!-- This is how you do an HTML comment tag -->
 /* This is how you do a comment in the css STYLE section */
 // this is how you do a comment in javascript and php
 # This is a comment in Python

Example 2: comment out css inline

/* this is some commented out css
.my-field{
   font-size:10px;
   border:1px solid red;
}
*/

Example 3: css comment

/* This is a CSS comment! */
/* Remember that you have to add the end bit on comments or all your
code will turn to comments! Thease comments can go over several lines! */

Example 4: css add comment

/* This is a comment for heading styles */
h1 {
  color: red;
}

Example 5: comments in css

/*comment here*/

Example 6: comment css

// Do some stuff {}
.foo { animation: bar 1s infinite; }
/* Success! */

Tags:

Html Example