Test 2 Flashcards
____________________was introduced in _______ by Håkon Wium Lie Bert Bos , and W3C
Cascading Style Sheets (CSS)
1996
Before this time, web formatting was provided by use of elements , such as <b> u>, and so on. These elements are ___________ b/we should now use CSS to provide formatting</b>
deprecated
In general, CSS allows web developers to keep separate __________, __________, __________ and.
content
structure
format
Each HTML document contains:
Content
Structure
Format
Syntax can be defined in three ways
In-line
Embedded
External
Regardless of where you declare your CSS, basic CSS syntax is comprised of…
- property: value pairs
CSS allows you to manipulate numerous HTML element properties, including…
Colors
Fonts
Position
Alignment
Precedence for inline, embedded and external follows
Highest precedence:
Middle precedence:
Lowest precedence:
Highest precedence: inline
Middle precedence: embedded
Lowest precedence: external
The _______ property (foreground color) and _______________ property (background color) can be assigned:
____________ or ____________
Color
background-color
Color key or hexadecimal(RGB)
Font have 5 properties:
font-family
font-size
font-style
font-variant
font-weight
Allows you to define the type of font used for a particular element
font-family property
-
-
-Specific font-family names
-Generic font-family
-The last list value should be generic font family name
Unlike most other CSS properties, VALUES are separated by a _______ to indicate that they are alternatives
Comma
Allows you to define the size of a font used for a particular element
font-size property
FONT-SIZE can be defined as one of the following:
Absolute
Relative
Length
Percentage
CSS font-size include:
xx-small
x-small
small
medium
large
x-large
xx-large
Identical size to the current font-size of the parent element.
Relative font-size
Relative font-size has two values:
larger
smaller
Length font-size has four values:
___ and ___ refer to the computed format of current element
What values are not allowed:
pt, px, em, ex
em and ex
Negative
Percentage font-size are increased/decreased by:
What values are not allowed:
%
negative
Allows you to select between normal, italic, and oblique faces with a font family
font-style property
The font-style VALUE can be defined as one of the following:
Normal
Italic
Oblique
Allows you to control the style within a font-family.
Font-variant property
The font-variant property allows you to specify __________ within a font family
small-caps
The lower case letters look similar to the uppercase ones, but in a smaller size and with slightly different proportions.
Small-caps
In small-caps the first _______ of the first ________ is slightly larger then all other characters in the sentence.
Character
Word
The font-variant value in a FONT-FAMILY can be defined as one of the following:
normal
small-caps
Allows you to select the weight of the font.
Font-weight property
The font-weight value can be defined as one of the following:
-Normal
-Bold
-Bolder or lighter
-Values 100, 200, 300 all the way to 900 where number indicates a weight that is at least as dark as it predecessor
Six positioning properties for an html element
Position
Top
Left
Bottom
Right
Z-index
properties allow you to position documents content anywhere within the users agents window
The six positioning properties
The six positioning properties are _________ of normal ________ flow!!!
Outside
in-line
The position property can take on any of the following three VALUES:
Static
Relative
Absolute
When the value is ________, the content is laid according to the normal flow. Meaning, the content is not separated from the structure of other content in the block element in which it is defined.
Static
I’m ________ the top,right,bottom, and left properties do not apply. It is the default.
Static
When the value is _________ the content is offset to its normal position.
It’s position is specified with properties top, bottom, left, and right.
Relative