Glossary of Terms CSS
A
- Ancestor
- all elements in the html tree that are above an element.
- Attribute
- a variable or term that defines a specific setting or provides additional information to an element. Attributes appear as name value pairs in an element's start tag. Example (in red): < h2 align="center">.
C
- Child
- an element that is directly nestled under another element - ie there are no elements between it and the element above it
D
- Declaration
- A selector is part of a CSS rlue. It is enclosed within curly braces. it consists of at least one and possibly more of a property with a value.
Example:
- Descendant
- all elements that are directly enclosed within another element.
E
- Element
- a defined piece of a html document that has a start tag and usually having a end tag. Commonly known as tags. Example:<html>
R
- Rule
- how a style is defined in CSS. A rule is made up of a selector, and decoloration.
Example:
S
- Selector
- Usally it is a html element but it can be other things also like an ID (#one) or class (.red)
Example: