<!-- XHTML:Basics plus snippet 1. --> <!-- Hyperlinks and anchors. --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>View snippet page</title> </head> <body> <!-- standard text link --> <!-- full absolute path --> <p><a href="http://www.justfigures.co.uk/xhtmlbasicsplus/6_testLink2.php">Standard text link: absolute</a></p> <!-- standard text link --> <!-- absolute path without specifying domain: if resource is on the same domain --> <p><a href="/xhtmlbasicsplus/6_testLink2.php">Standard text link: absolute</a></p> <!-- standard text link --> <!-- relative path --> <p><a href="6_testLink2.php">Standard text link: relative</a></p> <!-- standard text link --> <!-- relative path: if resource is in a higher directory (folder) --> <p><a href="../6_testLink2.php">Standard text link: relative</a></p> </body> </html>