22.12.2013 Views

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Document language<br />

The encoding language of the source document (e.g., HTML or an XML<br />

application).<br />

Element<br />

(An SGML term, see [ISO8879].) The primary syntactic constructs of the<br />

document language. Most CSS style sheet rules use the names of these<br />

elements (such as "P", "TABLE", and "OL" for HTML) to specify rendering<br />

information for them.<br />

Replaced element<br />

An element for which the CSS formatter knows only the intrinsic dimensions.<br />

In HTML, IMG, INPUT, TEXTAREA, SELECT, and OBJECT elements can<br />

be examples of replaced elements. For example, the content of the IMG<br />

element is often replaced by the image that the "src" attribute designates.<br />

CSS does not define how the intrinsic dimensions are found.<br />

Intrinsic dimensions<br />

The width and height as defined by the element itself, not imposed by the<br />

surroundings. In <strong>CSS2</strong> it is assumed that all replaced elements -- and only<br />

replaced elements -- come with intrinsic dimensions.<br />

Attribute<br />

A value associated with an element, consisting of a name, and an associated<br />

(textual) value.<br />

Content<br />

The content associated with an element in the source document; not all<br />

elements have content in which case they are called empty. The content of<br />

an element may include text, and it may include a number of sub-elements,<br />

in which case the element is called the parent of those sub-elements.<br />

Rendered content<br />

The content of an element after the rendering that applies to it according to<br />

the relevant style sheets has been applied. The rendered content of a<br />

replaced element [p. 30] comes from outside the source document.<br />

Rendered content may also be alternate text for an element (e.g., the value<br />

of the HTML "alt" attribute), and may include items inserted implicitly or<br />

explicitly by the style sheet, such as bullets, numbering, etc.<br />

Document tree<br />

The tree of elements encoded in the source document. Each element in this<br />

tree has exactly one parent, with the exception of the root element, which<br />

has none.<br />

Child<br />

An element A is called the child of element B if an only if B is the parent of A.<br />

Descendant<br />

An element A is called a descendant of an element B, if either (1) A is a child<br />

of B, or (2) A is the child of some element C that is a descendant of B.<br />

Ancestor<br />

An element A is called an ancestor of an element B, if and only if B is a<br />

descendant of A.<br />

Sibling<br />

An element A is called a sibling of an element B, if and only if B and A share<br />

the same parent element. Element A is a preceding sibling if it comes before<br />

B in the document tree. Element B is a following sibling if it comes after B in<br />

the document tree.<br />

30

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!