The A Target HTML Attribute Explained - FreeCodeCamp
Có thể bạn quan tâm
The <a target> attribute specifies where to open the linked document in an a (anchor) tag.
Examples of
A target attribute with the value of “_blank” opens the linked document in a new window or tab.
<a href="https://www.freecodecamp.org" target="_blank">freeCodeCamp</a>A target attribute with the value of “_self” opens the linked document in the same frame as it was clicked (this is the default and usually does not need to be specified).
<a href="https://www.freecodecamp.org" target="_self">freeCodeCamp</a> <a href="https://www.freecodecamp.org">freeCodeCamp</a>A target attribute with the value of “_parent” opens the linked document in the parent frame.
<a href="https://www.freecodecamp.org" target="_parent">freeCodeCamp</a>A target attribute with the value of “_top” opens the linked document in the full body of the window.
<a href="https://www.freecodecamp.org" target="_top">freeCodeCamp</a>A target attribute with the value of _“framename”_ opens the linked document in a specified named frame.
<a href="https://www.freecodecamp.org" target="framename">freeCodeCamp</a>Related links:
- The attribute
- General info on HTML attributes
If you read this far, thank the author to show them you care. Say Thanks
Learn to code for free. freeCodeCamp's open source curriculum has helped more than 40,000 people get jobs as developers. Get started
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
-
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
-
HTML Link Target Attribute
-
Target Attribute Reference For Anchor Tags In HTML - DigitalOcean