Page 83 - CodePilot V5.0 C8
P. 83
Code Write the HTML code to display the given web page using the TARGET attribute so
2 that the link opens its content within the inline frame.
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE>Using Frames in HTML</TITLE>
<STYLE>
BODY{BACKGROUND-COLOR: #EBE9DF;COLOR: #00796B;}
</STYLE>
</HEAD>
<BODY>
<H2>Iframe Target for a link</H2>
<A HREF="Robotics.html" TARGET="image_frame">
<IFRAME SRC="Artificial_Intelligence.html" HEIGHT="350PX" WIDTH="300PX"
NAME="image_frame"></IFRAME>
<BR>
<A HREF="Robotics.html" TARGET="image_frame">Click here to load Robotic
Arm Page</A>
</BODY>
</HTML>
The output of the preceding code is as follows:
Upon clicking the link, the page opens in the frame defined above.
81
Frames and Forms in HTML5

