What are the names of the individual pieces of a CSS rule?
A CSS rule contains two parts: a selector and a declaration.
(Note: Additional spaces have been added here and there to abide by the website’s display rules. [Cannot display code without premium version])
In CSS, how do you select elements by their class attribute?
To select an element in CSS by using their class attribute, you must include a period before the selector.
EX:
.body {
...
{In CSS, how do you select elements by their type?
To select an element in CSS by using their type, you must match the name of the element that is already in HTML.
EX:
body {
...
{In CSS, how do you select an element by its id attribute?
To select an element in CSS by using their id attribute, you must include a pound/hashtag before the selector.
EX:
#body {
...
{