HTML Link Target Attribute
Có thể bạn quan tâm
HTML Reference
HTML by Alphabet HTML by Category HTML Attributes HTML Global Attributes HTML Events HTML Canvas HTML Audio/Video HTML Doctypes HTML URL Encode HTML Language Codes HTML Country Codes HTTP Messages HTTP Methods PX to EM Converter Keyboard ShortcutsHTML Tags
<!--> <!DOCTYPE> <a> <abbr> <acronym> <address> <applet> <area> <article> <aside> <audio> <b> <base> <basefont> <bdi> <bdo> <big> <blockquote> <body> <br> <button> <canvas> <caption> <center> <cite> <code> <col> <colgroup> <datalist> <dd> <del> <details> <dfn> <dialog> <dir> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> <figure> <font> <footer> <form> <frame> <frameset> <h1> - <h6> <head> <header> <hr> <html> <i> <iframe> <img> <input> <ins> <kbd> <keygen> <label> <legend> <li> <link> <main> <map> <mark> <menu> <menuitem> <meta> <meter> <nav> <noframes> <noscript> <object> <ol> <optgroup> <option> <output> <p> <param> <pre> <progress> <q> <rp> <rt> <ruby> <s> <samp> <script> <section> <select> <small> <source> <span> <strike> <strong> <style> <sub> <summary> <sup> <table> <tbody> <td> <textarea> <tfoot> <th> <thead> <time> <title> <tr> <track> <tt> <u> <ul> <var> <video> <wbr> HTML <link> target Attribute
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>Definition and Usage
The <link> target attribute is not supported in HTML5.
The target attribute specifies a window or a frame where the linked document is loaded.
Browser Support
| Attribute | |||||
|---|---|---|---|---|---|
| target | Not supported | Not supported | Not supported | Not supported | Not supported |
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 W3SCHOOLS EXAMS
HTML, CSS, JavaScript, PHP, jQuery, Bootstrap and XML CertificationsCOLOR PICKER
LEARN MORE:
Color Converter Google Maps Animated Buttons Modal Boxes Modal Images Tooltips Loaders JS Animations Progress Bars Dropdowns Slideshow Side Navigation HTML Includes Color Palettes Code Coloring
SHARE THIS PAGE
REPORT ERROR PRINT PAGE FORUM ABOUT ×Your Suggestion:
Your E-mail: Page address: Description: Submit ×Thank You For Helping Us!
Your message has been sent to W3Schools.
Top 10 Tutorials
HTML Tutorial CSS Tutorial JavaScript Tutorial W3.CSS Tutorial Bootstrap Tutorial SQL Tutorial PHP Tutorial jQuery Tutorial Angular Tutorial XML TutorialTop 10 References
HTML Reference CSS Reference JavaScript Reference W3.CSS Reference Browser Statistics PHP Reference HTML Colors HTML Character Sets jQuery Reference AngularJS ReferenceTop 10 Examples
HTML Examples CSS Examples JavaScript Examples W3.CSS Examples HTML DOM Examples PHP Examples jQuery Examples ASP Examples XML Examples SVG ExamplesWeb Certificates
HTML Certificate HTML5 Certificate CSS Certificate JavaScript Certificate jQuery Certificate PHP Certificate Bootstrap Certificate XML Certificate W3Schools is optimized for learning, testing, and training. Examples might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 1999-2016 by Refsnes Data. All Rights Reserved. Powered by W3.CSS.
× HTML/CSS
Learn HTML Learn CSS Learn W3.CSS Learn Colors Learn BootstrapJavaScript
Learn JavaScript Learn jQuery Learn jQueryMobile Learn AppML Learn AngularJS Learn AJAX Learn JSONHTML Graphics
Learn Canvas Learn SVG Learn Icons Learn Google Maps Learn HTML GamesServer Side
Learn SQL Learn PHP Learn ASP Learn ASP.NETWeb Building
Web Building Web Statistics Web CertificatesXML Tutorials
Learn XML Learn XSLT ×HTML
HTML Tag Reference HTML Event Reference HTML Color Reference HTML Attribute ReferenceCSS
CSS Reference CSS Selector Reference W3.CSS Reference Bootstrap ReferenceJavaScript
JavaScript Reference HTML DOM Reference jQuery Reference jQuery Mobile Reference AngularJS Reference Google Maps ReferenceServer Side
PHP Reference SQL Reference ASP Reference Razor Reference ASP.NET ReferenceXML
XML Reference XSLT Reference XML Schema Reference SVG ReferenceCharsets
HTML Character Sets HTML ASCII HTML ANSI HTML Windows-1252 HTML ISO-8859-1 HTML Symbols HTML UTF-8 ×HTML/CSS
HTML Examples CSS Examples W3.CSS ExamplesJavaScript
JavaScript Examples HTML DOM Examples jQuery Examples jQuery Mobile Examples AngularJS Examples AJAX ExamplesServer Side
PHP Examples ASP Examples Razor Examples .NET ExamplesXML
XML Examples XSL Examples XSLT Examples XPath Examples XML Schema Examples SVG Examples × Translate w3schools.com: × Search w3schools.com:Từ khóa » Html5 A Tag Target
-
HTML A Target Attribute - W3Schools
-
How To Use The To Make Links & Open Them Where You Want! »
-
: The Anchor Element - HTML: HyperText Markup Language | MDN
-
When To Use Target="_blank" | CSS-Tricks
-
The A Target HTML Attribute Explained - FreeCodeCamp
-
HTML | Target Attribute - GeeksforGeeks
-
Is It Alright To Use Target="_blank" In HTML5? - Stack Overflow
-
Don't Use The Target="_Blank" Link Attribute In These Cases
-
What Is The HTML Target Attribute?
-
A – Hyperlink (CHANGED) - HTML5 - W3C On GitHub
-
In This Section, We Will See The Use Of Target Attribute Of Anchor Tag In ...
-
HTML Tutorial => Target Attribute In Form Tag
-
The Target Attribute Of Anchor Tag In HTML - HTML Tutorial 35
-
Target Attribute Reference For Anchor Tags In HTML - DigitalOcean