0% found this document useful (0 votes)
16 views3 pages

FSW

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views3 pages

FSW

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Aim:

To write an HTML program to explain working of


hyperlinks.
Description:
<a href=”link address” target=”value”> content visible in
web</a> href is an attribute
target is an attribute
value can be _self, _blank, _parent, _top
self opens document in same window, blank opens
document in new tab, parent opens doc in parent frame, top
opens doc in full body of the window
Code:
<html>
<head>
<title> week1-2</title>
</head>
<body>
<h3>opening in same window</h3>
<a href="https://www.w3schools.com/" >visit w3
schools</a>
<h3>opening in new window</h3>
<a href="https://www.w3schools.com/"
target="_blank">visit w3 schools in new window</a>

<h3>opening own created file</h3>


<a href="week2-1.html" >file access</a>
</body>
</html>
Output:

By clicking first link


By clicking second link

By clicking second link

You might also like