CSS

p, h1, h2 {

color: red;

}

This approach reduces the length of your code, improves legibility and keeps the file size of your CSS file to a minimum, which in turn will improve your page loading speed. Remember that your page loading speed should be considered and measured throughout the entire development process.

Comments

When writing code, it’s useful to annotate your code with comments that explain your logic. This helps both yourself to remember why you might have written the code, and any other developers that might work on the file in the future. Comments are ignored by the browser, and are purely for documentation purposes. A comment is created using the following syntax: