Page 113 - Plus_V2.2_C8_Flipbook
P. 113
Following is the code of the coffee.html web page that is given in the above code:
<!DOCTYPE HTML>
<HTML>
<HEAD> <TITLE>Coffee Portal</TITLE> </HEAD>
<BODY>
<H1>Welcome to Coffee Portal</H1>
<H2>We will assist you to know more about coffee and its varieties.</H2>
<P>Coffee is a beverage brewed from roasted coffee beans. Darkly
coloured, bitter, and slightly acidic, coffee has a stimulating effect
on humans, primarily due to its caffeine content. It has the highest
sales in the world market for hot drinks.
More details about coffee are available on the website
<A HREF="https://en.wikipedia.org/wiki/Coffee">Click here for more
Coffee details</A> </P>
</BODY>
</HTML>
Now when the image is clicked, the linked file ‘coffee.html’ is opened. The output of this file is as follows:
Image as a link When the image is clicked
Now, when the link is clicked, it redirects to the Wikipedia website related to coffee as follows:
When the link is clicked
Links, Frames, and Forms in HTML5 111

