Reading-notes

CSS

Cascading Style Sheets (CSS) are used to format the layout of a web page.

With CSS you can do the following:

1.Control color, font, and text size

2.How to place and lay out items

3.Background images or background colors to be used

There are some ways to add CSS, including:

Inline CSS Style

Inline styles are used to apply unique style rules to an element by placing CSS rules directly at the start tag. It can be attached to an element using the style attribute.

Embedded style sheets

1.Embedded or internal style sheets affect only the document they are embedded in.

2.Style sheets embedded in the <head> section of an HTML document are defined using the

exterior style sheets

1.An external style sheet is ideal when applying the style to many pages of a website.

The color CSS property sets the foreground color value for element text and body decorations It specifies the value of . currentcolor can be used as an indirect value on other properties and is the default for other color properties.

Use this CSS reference to browse through an alphabetical index of all standard CSS properties, pseudo-classes, pseudo-elements, data types, function codes, and rules.

An abbreviated DOM-CSS/CSSOM reference is also included.

The goal of resetting the stylesheet is to reduce inconsistencies in the browser Reset styles often appear in CSS frameworks, and the original “meyerweb reset” found its way into Blueprint.