AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL
HTML Tutorial

HTML link open in new tab or window - how to create link

By default if no target is specified, the link will open in the current window, unless the link specifies target.

Example of HTML link open in new tab or window

In most browsers, HTML links will open in the current window, unless the link specifies target
The target attribute specifies where the linked document will open when the user clicked the HTML link. By default is the current window. If target="_blank", when the user clicked the HTML link, this document will open in a new tab or a new window.

Example 1:
<!DOCTYPE html>
<html>
<head>
<title>Title of button action</title>
</head>
<body>

<a href="http://www.agernic.com" target="_blank" style="color:#C30; text-decoration: none;">Tutorial html</a>
<a href="http://agernic.com/facebook.jpg" target="_blank"><img src="http://agernic.com/facebook.jpg" style="width:342px;height:72px;border:0;" alt="facebook"></a>
<a href="https://www.google.com/" target="_blank" style="text-decoration: none; padding:8px; color:#090; font-size:18px">Google Search</a>

</body>
</html>

The html cod above will display this HTML result:

Tutorial html
facebook
Google Search
Note: This alternative target="_blank" allows a user to click on a reference and come back to it later without leaving the current page.


HTML link open in new tab, HTML link open in new window, how to create link
HTML link open in new tab or window - how to create link - html tutorial

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


HTML Img Background
HTML Image Link
HTML Image Size
HTML Text Style
HTML Text Align
HTML Text Size
HTML Text Color Style
HTML Text Color
HTML Table Color
HTML Table Row Colspan
HTML Table Width
HTML Table Style
HTML Table Border
HTML Table
HTML Font Face
HTML Font Size
HTML Font Color
HTML Headings
HTML div border color
HTML div class
HTML class container
HTML form action
HTML comment
HTML link new tab
HTML link underline
HTML link tag
HTML button action
HTML button onclick
HTML button link
HTML table style
HTML image
HTML colors
HTML div style
Text, paragraf in HTML
HTML Tags Attributes
HTML - Elements
HTML Introduction
Home HTML Tutorial
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.