Intro. to CSS
- CSS stands for Cascading Style Sheets.
- Styles define how to display HTML elements.
- Styles are normally stored in style sheets.
- External style sheets are stored in CSS files.
- External style sheets can save you a lot of work.
- Use external style sheets!
- Language used to describe how an HTML document should be formatted.
- Examples:
- Setting the font name.
- Changing font sizes.
- Formatting table or container borders.
- Positioning html tags.
- It enables you to change the appearance and layout of ALL the pages in your web site, just by editing one single CSS document!
- 3 locations:
- External style sheet (recommended for most instances)
- Internal style sheet (use when appropriate)
- Inline style (use when appropriate)
- Highest precedence
- Inline style
- Next precedence
- Internal style sheet
- Least precedence
- External style sheet
- <link rel="stylesheet" type="text/css" href="mystyles.css" />
No comments:
Post a Comment