Part 5 - The CSS Box Model – web typography, ‘color’ and graphics Flashcards
(80 cards)
describe the
margin
of the box model
in regards to the box model:
this lets you add a margin around the border
(NOTE: margins placed vertically next to each other can merge this is known as a callapsed margin)
describe the
border
of the box model
in regards to the box model:
this lets you place a border around the content which can then be styled
these are described by a rectangle known as the
box model
how is every
**html element **
described
these include:
1.Lack of pattern leading the user to become confused as to how content is structured
2.Dense and crammed text lack of whitespace
give 2 factors that contribute to bad typography
what is the
“flow”
of a html document
this describes how an element will be positioned given no positioning style
why is it important to define font and style choices early in development
this is important so that the site and all of its pages can have a consistent look, this gives less risk of customers leaving due to the site looking confusing and clumsy
features of this are:
1. only occurs on block elements
2. only occurs on the top and bottom margins (vertically)
3. when this occurs the largest margin of the two margins is used as the gap between there borders
describe 3 features of css
margin callapse
what are the 4 common graphic formats found on the web
these include:
1. Joint Photographic Experts Group (JPEG)
2. Graphics Interchange Format (GIF)
3. Portable Network Graphics (PNG)
4. Scalable Vector Graphics Format (SVG)
this can be accomplished using:
1. colour name
2. hexadecimal value
3. RGB value
4. HSL value
what 4 ways can we define a colour in css
State the hue saturation and lightness of a colour
May also use hsla where a is the alpha or transparency
Color: hsl(0, 100%, 50%)
how do we define a colour in css using a HSL value
these include:
1.Designed for the web
2.Supports transparency
3.Does not compress as well as jpg
4.Not recommended for photograph distribution across a network
give 4 characteristics of
Portable Network Graphics (PNG)
this describes how an element will be positioned given no positioning style
what is the
“flow”
of a html document
what are 4 font and style choices that should be known early in development
these include:
1.Font types
2.Font sizes
3.Heading and sub heading sizes
4.Paragraph spacing
to avoid this good design choices would be:
* choose a few select fonts and sizes
* limit your font choices to those that are readily available on users devices
* design for legibility and for usability purposes you should always try to avoid using text as graphics.
to avoid
“corruption” or “control” of the styling of your page
what are 3 good design choice
properties of this include:
* An inline element does not start on a new line.
* An inline element only takes up as much width as necessary.
* <.span> is an example of a inline element
in 3 points describe an
inline element
give two points regarding
text as graphics
- in genarl this should be avoided
- where it cannot be avoided such as in a logo then alt text must be supplied
give 3 characteristics of
Graphics Interchange Format (GIF)
these include:
1. Uses lossy compression (image must use same colour palette)
2. 8-bit images meaning 256 colours
3. Supports transparency
these include:
1. Uses lossy compression (image must use same colour palette)
2. 8-bit images meaning 256 colours
3. Supports transparency
give 3 characteristics of
Graphics Interchange Format (GIF)
describe 3 features of css
margin callapse
features of this are:
1. only occurs on block elements
2. only occurs on the top and bottom margins (vertically)
3. when this occurs the largest margin of the two margins is used as the gap between there borders
how do we define a colour in css using a HSL value
State the hue saturation and lightness of a colour
May also use hsla where a is the alpha or transparency
Color: hsl(0, 100%, 50%)
Give a hexadecimal value of a colour
Color: #ff0000
how do we define a colour in css using a hexadecimal value
properties of this include:
* A block-level element always starts on a new line
* the browsers automatically add some space (a margin) before and after the element.
* A block-level element always takes up the full width available (stretches out to the left and right as far as it can).
* Common block elements include <.div> and <.p>
describe in 4 points a
block level element
in 3 points describe an
inline element
properties of this include:
* An inline element does not start on a new line.
* An inline element only takes up as much width as necessary.
* <.span> is an example of a inline element
these are are compressed opentype or truetype fonts and have additional xml metadata
what is the
web open font format (WOFF)