CSS Syntax : Chapter 2

html-css-website

A CSS declaration always ends with a semicolon, and declaration groups are surrounded by curly braces: p {color:red;text-align:center;} To make the CSS code more readable, you can put one declaration on each line, like this: Example p { color: red; text-align: center; } CSS Comments Comments are used to explain your code, and may help you when you … Read more