A, AREA, MAP

1 A plain hypertext link

<a href="contact.htm">Contact us</a>

Contact us

2 An image link without an "alt" attribute

<a href="contact.htm"><img src="contact.gif"></a>

3 An image link with an "alt" attribute

<a href="contact.htm"><img src="contact.gif" alt="Contact us"></a>

Contact us

4 A client-side image map

<img src="ireland.png" usemap="ireland">
<map name="ireland">
  <area href="NIreland.htm" shape="rect" coords="120,0,200,60">
  <area href="RIreland.htm" shape="rect" coords="0,0,119,300" alt="Republic of Ireland">
  <area href="RIreland.htm" shape="rect" coords="120,61,200,300">
</map>

Republic of Ireland

4.1 A client-side image map with non-AREA block content

Republic of Ireland

Contact

4.2 Link using arguments

Link to contact.htm?cats

5 Internal links

See Internal links

6 Relative links

<a href="../A/contact.htm">Contact us</a>

Contact us

7 Absolute links

<a href="http://www.google.com">Google</a>

Google

8 Links with #

<a onclick="window.location=http://www.google.com" href="#">Google</a>

Google

9 Broken links

<a href="http://www.afjsfjhsdhgkjsdbvjfjsfjsdhfahfjadhfjasfgkbvoubhu.com">Broken link</a>

Broken link

10 Links with a title but no text

Should say "Link to Google (passed)"

11 Links with both image and text content.

Should say 1 2 3 4 5

1 2 3 4 5

12 Links with no href or "" href

Link with "" href

Link with no href at all

Home