click below
click below
Normal Size Small Size show me how
Webpage Chapter 4
| Question | Answer |
|---|---|
| CSS | Cascading Style Sheets-Used to format webpages. |
| Style | A rule that defines the appearance of an element on a webpage. |
| Inline style | Adding a style to the start tag of an element using the style attribute. Example: <h1 style="font-color: navy"></h1> |
| Embedded style | Also called internal. Style is set within the opening <head> tag of the HTML document. Example: <head> <title>My Website</title> <style> body { background-color: green; } </style> |
| External style sheets | Text file with .css file extension. Contains all the styles you want to apply to more than one page in a website. |
| Inheritance | CSS properties can be inherited from a parent element. Example: paragraphs and headings inherit the font and color rules for the body selector. |
| Specificity | The most specific selector is applied. |
| Best Practice | Apply inline styles-one pair, embedded styles-one page, external styles for all pages in a website. |
| Selector | Part of the statement that identifies what to style. Ex. Body { body is the selector in this example. |
| { } I call it a squiggly | Used to write CSS code. |
| Reskinning a website | Change the look of an entire website. |
| em, %, px, pt, keyword (small, xsmall) | Font size measurement units |
| font-family, font-size, font-weight, font-style, text align, color | Common text properties |
| If a font family contains more than one word, it must be in quotation marks | Ex. "Times New Roman" |
| Color can be represented in two ways | Hexadecimal-Ex. #000000 or RGB (0,0,0) |
| Margin | Provides passive white space between block elements or top/bottom of webpage. |
| Border | Separates the padding and margin of the block element. |
| Padding | Passive white space between the content and the border of a block element |
| Linking an HTML document to a CSS file | Example: <link rel="stylesheet" href="css/styles.css"> |