PGDEL/DECP03/Unit3/10
Unit 3.3 Web application development tools & Technologies
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:
<A href=”url”> link </A>
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:
<A href=” document1.htm”> link to document1 </A>
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:
<A Name=”location_name”>
<A href=”#location_name”> Link </A>
Example:
<A Name=”top”>
<A href=”#top> Top Hyperlink</A>
indicates that a jump is required within the same document. On clicking the Top Hyperlink the control goes to the location named as top.
Work in progress, expect frequent changes. Help and feedback is welcome. See discussion page. |