PGDEL/DECP03/Unit3/10

  Unit 3.3 Web application development tools &amp; Technologies  HTML Links A hyperlink is a link (word/sentence/image) that you can click on to jump on new document or a new section in current document.

Syntax:

          &lt;A href=”url”&gt; link &lt;/A&gt;  herf attribute specify the destination link.

External document reference: Link will be displayed as hyperlink, and link to another document, document which is present in the current working directory. If file is not present in current directory, a relative path can be specified as the attribute value.

Example:         &lt;A href=” document1.htm”&gt; link to document1 &lt;/A&gt;

Internal document reference: This provides a link to jump a different location in the same document. First you have to identify a location with the name and then jump to that location using the name.

Syntax:           &lt;A Name=”location_name”&gt;            &lt;A href=”#location_name”&gt; Link &lt;/A&gt;

Example:           &lt;A Name=”top”&gt;            &lt;A href=”#top&gt; Top Hyperlink&lt;/A&gt; 

indicates that a jump is required within the same document. On clicking the Top Hyperlink the control goes to the location named as top.