CSS
CSS introduction
Stylesheets
CSS syntax
Classes and ID's
CSS Comments
BG properties
Text properties
Font properties
List properties
Border properties
Margin properties
Padding properties
Outline properties
Table properties
Dim properties
Class properties
Position properties
Pseudo classes
Pseudo elements
Media types
Summary

Programming

Programming intro
Java

Markup

First webpage guide
HTML
XHTML

Browser scripting

Javascript
VBScript
AJAX

Server scripting

PHP
ASP

Making money online

Make money online

CSS comments

Comments are declared within stylesheet definitions so that code would be easier to understand and navigate. Comments in CSS are ignored by web browsers.

This lesson focuses on:

Including comments in stylesheet definitions

Comments begin with /* and end with */

Example:

/* this is a comment */

p{
color: green; /* the color of the text in the paragraph */
font-family: Courier;
margin-top: 0;
margin-left: 0; /* the left margin of the paragraph */
} 

/* this is another comment */

Practice

Online code editor
Practical examples
Practical exercises
Step-by-step tutorials

Reference

Terms glossary
Reference material

Rate this site

Rate this site
Visitor comments