W3Schools.com

HTML <link> target Attribute

HTML link Tag Reference HTML <link> tag

Example

In the following example, the linked document is loaded in a new window:

<head>
<link rel="parent" href="wildcats.htm" target="_blank" />
</head>


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

Note: The target attribute is not supported in any of the major browsers.


Definition and Usage

The target attribute specifies a window or a frame where the linked document is loaded.


Syntax

<link target="_blank|_self|_parent|_top|framename" />

Attribute Values

Value Description
_blank Load in a new window
_self Load in the same frame as it was clicked
_parent

Load in the parent frameset

_top Load in the full body of the window
framename Load in a named frame


HTML link Tag Reference HTML <link> tag
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$3.98 Unlimited Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Best Website Templates Top CSS Templates
CREATE HTML Websites
EASY WEBSITE BUILDER
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE