Interactivity: Links and JavaScript

Adding links

An External link is one that prompts the user to open a webpage that is not part of your website.

An Internal link is one that prompts the user to open a webpage that is part of your website.

To add a linkthat opens the link and replaces the existing page

To add a linkthat opens the link as a new page

To add a linkfor an image file

Text Link Example



<!--This code prompts the link to open in a NEW pafe in the browser-->
<a href="http://color-wheel-artist.com/primary-colors.html" target="_blank">color-wheel-artist.com</a>

<!--This code prompts the link to the HTML file to REPLACES the current page in the browser-->
<a href="gallery_1.html" title="Gallery Page #1" target="_self">Page Name #1 Link</a>

<!--This code prompts the IMAGE file to be a link-->
<a href="page.html" title="Page Title" target="_self"><img src="image.png" width="180" height="180" alt=""/></a>

JavaScript

JavaScript is one of the 3 languages all web developers must learn:

Dreamweaver Logo

Special Characters

Some characters require a different HTML tag called a Symbol Entity Names (i.e. “&” instead of just “&”).

To learn more Symbol Entity Names, visit: W3Schools