HTML Links, JS Functions, and Intro to CSS Layout
HTML Links
- using the tag <a> to create a link
- there is an href attribute in <a> to point at the page that is linked to
- using a relative link is better when linking a page within your site
- links can open email programs
- the id attribute and target the elements within the linked page
CSS Layout
There are several key points in layout:
- building blocks
- containing elements
- position of elements
- normal flow: static
- relative positioning: relative
- absolute positioning: absolute
- fixed positioning: fixed
- overlapping elements: z-index
- floating elements: float
- clearing floats: clear
- creating multi-column layouts with float
- screen sizes
- screen resolution
- page sizes
- layout grids
Function, Methods, and Objects
Functions let you group a series of statements together to perform a specific task. Tips of using a function:
- Declare a function using the function keyword
- Give the function a name followed by parentheses
- The statements that perform the task sit in a code block
- Functions can be used as variable values
- Variables declared within a function become LOCAL to the function