Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 498 Bytes

rules.md

File metadata and controls

16 lines (12 loc) · 498 Bytes

Rule sets

CSS is based on rules. Rule sets look like this:

h1 {
	display: inline;
    font-family: sans-serif;
    font-style: normal;
    font-weight: 700;
}

This rule applies to all <h1> tags, and changes the font style and display type. The lines within the braces { } are called "selectors," and they change the formatting of elements in the HTML document. Each selector ends in a semicolon (;).

What are some different selectors you might set for different HTML elements?