|
|
CSS Basics - Selectors
CSS Selectors
In our previous example, we saw styling being applied to the
<body> element through the use of CSS. In that example, body was the selector for that section of the style sheet. The general syntax of CSS is:
SELECTOR { PROPERTY: VALUE }
CSS can also be written in more shorthand manner:
SELECTOR {
PROPERTY: VALUE;
PROPERTY: VALUE;
PROPERTY: VALUE;
}
There are a huge amount of properties which can be applied elements, and if you do want a full list the W3 publishes on here. We'll looks at some of the most useful and most popular elements in our CSS tutorials.
Page Responses
Currently there have been no responses to this page...
If you have anything to contribute to this tutorial, found a bug, or know a better way of achieving the same goal, please leave your response below.
|