How To Use target="_blank" Correctly In XHTML & HTML Strict

/ Published in: HTML
Save to your folder(s)

If you've ever used a strict doctype and used the target attribute on links you'll notice that it doesn't validate. Here is an easy solution.

Copy this code and paste it in your HTML
  1. <a href="" onclick=";return false;">Link</a>


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.