Skip to content

Instantly share code, notes, and snippets.

@keysona
Created November 18, 2016 02:12
Show Gist options
  • Select an option

  • Save keysona/8cb38fc227f0a275a49b3892e0c60144 to your computer and use it in GitHub Desktop.

Select an option

Save keysona/8cb38fc227f0a275a49b3892e0c60144 to your computer and use it in GitHub Desktop.
## How CSS works
- **HTML**, document's content.
- **CSS** (Cascading Style Sheets), document's style.
- **DOM** (Document Object Model), tree-like structure, formed from DOM node, combines the document's content with its style in memory.
- *Markup language*: HTML, SVG, XML.
- **CSS Rule** formed from: properties & selector.
- CSS use: external stylesheet (```<link>```), internal stylesheet (```<style>```), inline styles.
![work](https://mdn.mozillademos.org/files/11781/rendering.svg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment