Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!DOCTYPE html> <title>My Example</title> <p>Here's a link to the <a target="myTab" href="https://web.QHMit.com">QHMit homepage</a>.</p> <p>Here's a link to the <a target="myTab" href="https://web.QHMit.com/html/tutorial/">HTML tutorial</a>. Notice that this link will open in the same window/tab as the previous link (because it shares the target name - <code>myTab</code>).</p> <hr> <p>Using a named target (such as <code>target="myTab"</code>) opens the link in the window or tab of that name (e.g. one that has previously been opened under that name). If a window or tab of that name doesn't exist, a new window/tab will be open.</p> <p>More info: HTML <a href="/html/tags/html_a_tag.cfm"><code>a</code></a> element.</p>
Preview