Consider an example of an e-commerce website .The homepage of such a website lists the main categories of the product .The user clicks on the link of a particular product to fetch the information about it.After exploring the details of that product,the user can easily naviagte further to links ,or can come back to the hime page.
In html ,the anchor tag is used to mark the text as hyperlink,which a user can click to display the docent,anchored to it .Being a container tag .It requires </A>closingbtagto mark the end of the textbor images .This tag can be used in two ways:
| NOTE | In the above given syntax ,the text "click here"is called Hypertext.Hypertext is a text which contains links to information(text,graphics,or media) on the same webpage or some other webpage .Browser displays this text as underlined and colored. |
|---|
Let us understand the concept with the help of an example.
Type the following code for the main file and save it with the name"links.html":
| <html > <head> <title>using links </title> </head> <body bgcolor="light yellow"> <ul> <h1> tourist places in chandigarh </h1> <font face="monotype corsiva"size="6"> |
learning with computers withKips