jeudi 26 février 2015

Open link in new tab in HTML5 using CSS only in Chrome

I am quite new at this - and not sure if this code is too simple to be true. So here is what I found (after much searching). Could not find my answer in Stackoverflow... Please let me know if there are any outstanding errors, etc. Thank you for your patience!



<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<title>Open HTML5 links in new tab</title>
<style type= "text/css"></style>
<base target="_blank">
</head>

<body>
<header>
<h1>Open links in new tab in HTML5 (Chrome Version 40.0.2214.115 m</h1>
</header>

<section>
<a href="http://www.bing.com">Open BING in new tab</a>
<p><p/>
<a href="http://www.gmail.com">Open GMAIL in new tab</a>
</section>

</body>
</html>

Aucun commentaire:

Enregistrer un commentaire