Web Links in HTML Page

The Web Book

Text Links Example:

Link to other pages within a website: Home Buy Errata Contact

Link to another website: Buy from Amazon!

Image Link Example:

Amazon!


HTML Web Links Example Code

<!DOCTYPE html> <html> <body> <p><b>Text Links Example:</b></p> <p>Link to other pages within a website: <a href="index.html">Home</a> <a href="buy.html">Buy</a> <a href="errata.html">Errata</a> <a href="#">Contact</a> </p> <p>Link to another website: Buy from <a href="http://www.amazon.com/" target="_blank">Amazon!</a> </p> <p><b>Image Link Example:</b></p> <p> <a href="http://www.amazon.com/"><img src="images/amazon.jpg" alt="Amazon!" height="20"/></a> </p> </body> </html> Back