- create links with the
<a>element - add
hrefattribute to<a>to link page - use relative links if linking within your own page (aka file pathway)
- can use
../to indicate folder above file
<a href="address">Link Title</a>Email link:
<a href="mailto:emailadress">Email Link</a>Link in new window:
<a href="address" target="_blank">Link Title</a>- use
href="#idname"to link to part of the same page
floatleft or right (have to define width for float content)clear- left, right, both, none - means sides of box wont touch any other elementposition: static- block level elements sit on top eachotherposition: relative- moves element relative to where it would be normally, specify relative location withtopandleftposition: absolute- element doesnt affect orientation of other elements, can usetop,left,widthto specify locationposition: fixed- fixes the position relative to browser windowz-index- allows element to sit on top of other content
- can return an array from a function
- if a function returns an array, you can return a single value from the array by calling the function with the index number, e.g.
getValues(arguments)[0]