Reading Notes
Adding Images
<img>
empty tag that must carry the following 2 attributessrc
Source path to location of image, typically a relative locationalt
Alt Text provides a description of the image if you cannot see ittitle
Title provides additional info about the image when user hovers over it with mouseheight
specifies the height of a picture in pixels, typically set with CSS not htmlwidth
specifies width of picture in pixels, now typically set with CSS not html<figure>
tag to contain an image with its caption<figcaption>
add a caption to an image so they are associated with one another3 Rules of Creating Images
To determine current dimensions of an image on the web right click open in new tab, the dimensions will be displayed in the tab
Color the color:
property allows you to specify text color in an element
rgb(100,100,90)
#
, example: #ee3e80
DarkCyan
CSS Comments developer notes that will not effect the code
/*comment*/
Background Color background color is set to transparent by default, most browsers show white, but not always
body {
background_color: rgb(200,200,200):}
Online Color Picking Tool Color Scheme Designer
Opacity allows developer to set the opacity of an element and its children, values from 0.0 to 1.0
rgba
, example: rgba(231,112,56,0.5)
HSL Colors defines a color in three terms: hue, saturation, and lightness
Typeface Terminology
Default text size in browser is 16px. Can use percentages to scale the text based on 16px = 100%
@font-face allows you to use a font that is not installed on the browsing computer
@font-family {
font-family: 'ChunkFiveRegular';
src: url('fonts/chunckfive.eot');
}
h1, h2 {
font-family: ChunkFiveRegular, Georgia, serif;}
}
font-family
specifies the name of the fontsrc
path to the fontformat
format that the font is supplied inFree font sources
Upper and Lowercase
text-transform: uppercase;
turns all letters to uppercasetext-transform: lowercase;
turns all letters to lowercasetext-transform: capitalize
capitalizes first letter in each word