This encyclopedia entry is 25% complete. Please add to this entry in order for it to more accurately cover its topic.
In particular, this requires: Missing proper explanations for things, maybe merge it with the styling entry
Color coded CSS
.page-content :is(h2, h3, h4, h5, h6) {
font-weight: bold; color: blue; font-size: larger;
}- This is a CSS rule. A CSS file is called a stylesheet, which is made up of many CSS rules.
- Green is the selector. It selects the content on the HTML document for the declaration to affect.
- The content within the {curly braces} is the declaration block. It is made up of declarations. This example has one declaration.
- Declarations are made up of a property and a value, and ended with a semi-colon. There can be as many declarations as one wishes within CSS.
- Yellow is a property. This is the attribute that you want to change. There are many properties available in CSS.
- Blue is a value. This is what you want to attribute to be. The options for the value depend on the property.