click below
click below
Normal Size Small Size show me how
basic web design
Question | Answer |
---|---|
The Role of CSS versus the role of HTML | HTML tells a Web browser how the content is organized on the page, whereas CSS tells the browser how it should look |
What CSS rules include | two main parts: a selector, and one or more declarations |
Define CSS declaration | consists of a property and a value. always ends with a semicolon, and declaration groups are surrounded by curly brackets |
Define CSS property | the style attribute you want to change. Each property has a value. assigned to a selector in order to manipulate its style (ex: color, font) |
Define CSS selector | the HTML element you want to style. (ex: h1, body) |
ID | used to specify a style for a single, unique element. uses the id attribute of the HTML element, and is defined with a "#". |
Class | used to specify a style for a group of elements. uses the HTML class attribute, and is defined with a "." |
pseudo | used to add special effects to some selectors. A property of something. The size of font, color of font |
When to use ID vs. class selector – ID | Single element - ID, group of elements - Class |
'em' | the vertical space needed for any given letter in a font, regardless of the horizontal space it occupies |
The effect of the “float” property on a div | element will move as far to the left or right as it can |
float options | right left none inheret |
How floats interact with one another in terms of layout | float next to eachother if there is room |
Role of “clear” property as applied to a div | specifies which sides of an element other floating elements are not allowed. Avoid elements flowing around the floating object |
Role of div tags in css | defines logical divisions (defined) in your Web page. It acts a lot like a paragraph tag, but it divides the page up into larger sections. gives you the chance to define the style of whole sections of HTML |
role of span tags in css | tells the browser to apply the style rules to whatever is within the |