Fall Sale! Code FALL2024 takes 25% OFF our Pro Plugins & Books »
Web Dev + WordPress + Security

The Friendliest Link Targets in the Neighborhood

[ Image: Fred Rogers with Shoe ] The target attribute for anchor elements (<a>) specifies the location in which the referenced document should load. For example, to open a link in a new window, we would use a target value of _blank. Although this is a commonly employed technique, the target attribute has been deprecated by the W3C and is not valid (X)HTML. Regardless, the target element remains a useful tool for practicing designers and developers. Here, we present the attribute values for the target element:

Attribute values for the target element

_blank
[ Syntax: target="_blank" ]
— instructs the user-agent to load the target document in a new window.
_replace
[ Syntax: target="_replace" ]
— instructs the user-agent to load the target document in a new window.
_self
[ Syntax: target="_self" ]
— instructs the user-agent to load the target document in the current frame or window.
null value
[ Syntax: target="" ]
— instructs the user-agent to load the target document in the current frame or window.
(no target specified)
[ Syntax: (no target specified) ]
— instructs the user-agent to load the target document in the current frame or window.
_parent
[ Syntax: target="_parent" ]
— instructs the user-agent to load the target document as the parental, or topmost, frameset or window.
_top
[ Syntax: target="_top" ]
— instructs the user-agent to load the target document in the topmost window or frameset.
custom
[ Syntax: target="custom" ]
— instructs the user-agent to load the target document in the frame identified as "custom" (i.e., id="custom").

R.I.P. Mr. Rogers
So long, neighbor.

About the Author
Jeff Starr = Fullstack Developer. Book Author. Teacher. Human Being.
Digging Into WordPress: Take your WordPress skills to the next level.
Welcome
Perishable Press is operated by Jeff Starr, a professional web developer and book author with two decades of experience. Here you will find posts about web development, WordPress, security, and more »
BBQ Pro: The fastest firewall to protect your WordPress.
Thoughts
I disabled AI in Google search results. It was making me lazy.
Went out walking today and soaked up some sunshine. It felt good.
I have an original box/packaging for 2010 iMac if anyone wants it free let me know.
Always ask AI to cite its sources.
All free plugins updated and ready for WP 6.6 dropping next week. Pro plugin updates in the works also complete :)
99% of video thumbnail/previews are pure cringe. Goofy faces = Clickbait.
RIP ICQ
Newsletter
Get news, updates, deals & tips via email.
Email kept private. Easy unsubscribe anytime.