Last active
October 13, 2015 14:18
-
-
Save digitaljhelms/4208694 to your computer and use it in GitHub Desktop.
What makes up a CSS rule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
,....................... (CSS RULE) ......................, | |
| | | |
| ,...., | | |
| (SELECTOR) --> | h1 | | | |
| `''''` | | |
| { | | |
| ,....................., | | |
| | ,......., ,....., | | | |
| (DECLARATION) --> | | color | : | red | | ; | | |
| | `'''''''` `'''''` | | | |
| `'''''^''''''''''^''''` | | |
| | | | | |
| (PROPERTY) (VALUE) | | |
| } | | |
| | | |
`'''''''''''''''''''''''''''''''''''''''''''''''''''''''''` |
Author
digitaljhelms
commented
Dec 4, 2012
- CSS rules tell browsers how to render elements in an HTML document.
- The selector "selects" the elements in an HTML document that are to be styled.
- The declaration tells a browser how to style the element.
- The property is the aspect of that element that you are choosing to style.
- The value is the exact style you wish to set for the property.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment