Duckett HTML Ch.3 Links (p.74-93)
Writing Links
<a href="http://www.imdb.com">IMDB</a>
Linking to other sites
- Links are created using the
<a>
element which has an attribure called href - Users can click on anything that appears between the opening
<a>
an closing</a>
tags and you will be taken to the page specified by the href attribute.
Linking to other pages on the same site
- You can also use the
<a>
tag to link to different pages on the same site.
<a href="index.html">Home</a>
Opening links in a new window
- If you want to open a link in a new window you can use the target attribute on the opening
<a>
tag.
<a href="http://www.imdb.com>" target ="blank">Internet Movie Database</a>
Duckett HTML Ch.14 Layout (p.358-404)
<div>
elements are often used as containing elements to group together sections of a page.- Browsers display pages in normal flow unless you specify relative, absolute, or fixed positioning.
- The float property moves content to the left or right of the page and can be used to create multi-column layouts. (Floated items require a defined width.)
- Pages can be fixed width or liquid (stretchy) layouts.
- Designers keep pages within 960-1000 pixels wide, and indicate what the site is about within the top 600 pixels (to demonstrate its relevance without scrolling).
- Grids help create professional and flexible designs.
- CSS Frameworks provide rules for common tasks.
- You can include multiple CSS files in one page.