reading-notes

This Repo required for Asac labs class 2


Project maintained by ManarAbdelkarim Hosted on GitHub Pages — Theme by mattgraham

Ch10 CSS

What is INTRODUCING CSS?

CSS stands for “cascading style sheets or CSS “, s a simple design language intended to simplify the process of making web pages presentable. It is responsable for the desgin CSS works by associating rules with HTML elements. These rules govern how the content of specified elements should be displayed. A CSS rule contains two parts: a selector and a declaration.

css

CSS Properties Affect How Elements Are Displayed:

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.

syntax:    Property :Value;

Properties

indicate the aspects of the element you want to change.

Values

specify the settings you want to use for the chosen properties.

css VS html

calling CSS :

we can usee CSS in three places :

  1. Inline

  2. Internal

  3. external

styles

## Selectors:

Applies to all elements in the document

Matches an element that is a sibling of another, although it does not have to be the directly preceding element

Summary