Sunday, February 18, 2007

Chapter 4: Getting Connected

Using the <a&glt; element to create a destination


Use <a id="chai">Chai Tea $1.85</a> to set a "destination anchor" on the spot of the page you want to land on.

Use <a href="index.html#chai">Read about the buzz</a> as the link to the destination anchor


If you're using a URL, than <a href="http://buzz.headfirstlabs.com#chai">Read about the buzz<'/a>.


Link To A New Window Using "Target"


Target is an attribute tha can be used with the <a> element.

For example, <a target="_blank" href="http://buzz.headfirstlabs.com#Coffee">Buzz</a>

No comments: