Selector
|
p {
font-family: Arial;}
|_________________|
|
declaration
font-family: Arial;
|___________|_____|
| |
property: value;
| |
color: yellow;
p {
font-family: sans-serif;
}
The CSS selector p will affect paragraphs in HTML.
<style>
</style>
- style
<link href="style.css" rel="stylesheet" type="text/css">
<link href="style.css" rel="alternate stylesheet" type="text/css">
- link
- rel
- type
- href
- Last rule
- specificity
- important
- inherit
/* This is a css comment */
- color: The color property is applied to text inside an element.
- background-color: html elements are treated as if they are in boxes. By default these are white. This property affects the background color of the box.
- opacity, rgba
- hsl, hsla
CSS syntax for Red, Green and Blue
rgb(#,#,#)
- 147 Named CSS colors
- Free online SVG editor Works best with Chrome Browser
- Hexidecimal Color Picker
- serif
- sans-serif
- monospace
- weight
- style
- stretch
- cursive
- fantasy
- font-family
- font-size
- pixels
- percentages
- ems
- @font-face
- font-family
- src
- format
- eot
- woff
- ttf/otf
- svg
- font-weight
- bold
- normal
- font-style
- normal
- italic
- oblique
- text-transform
- uppercase
- lowercase
- capitalize
- text-decoration
- none
- underline
- overline
- line-through
- blink
- line-height
- letter-spacing
- word-spacing
- text-align
- vertical-align
- baseline
- sub
- super
- top
- text-top
- middle
- botton
- text-bottom
- text-indent
- text-shadow