Block level elements look like they start on a new line. Examples include the
,
and
elements.
Inline elements flow within the text and do not start on a new line. Examples include , ,
, and .
CSS declarations sit inside curly brackets and each is made up of two parts: a property and a value, separated by a colon. You can specify several properties in one declaration, each separated by a semi-colon.
Color
The color property allows you to specify the color of text inside an element. You can specify any color in CSS in one of three ways:
- rgb values
- Hex Codes
- Color Names