4. Links
• Anchors are inline elements
• May only contain text and other inline
elements.
<a href=“http://www.google.com”><img src=“…” /></a>
<a href=“http://www.google.com”>This is a link</a>
5. Links: href attribute
• Absolute URL
– Provide the full URL for the document, including
the protocol (http://)
<a href=“http://www.google.com”>This is a link</a>
6. Links: href attribute
• Relative URL
– Can be used when you are linking to another
document on your own site (i.e., on the same
server).
<a href=“test.html”>This is a link</a>
7. Tables
• Rows
– tr = table row
• Cells:
– th = table header
– td = table data
• Actual content goes into cells
14. Color
• Computers create the colors you see on a
monitor by combining three colors: red,
green, and blue
• You can create a recipe for a color by telling
the computer how much of the three to mix in