Validate Target Blank With XHTML Strict


Using target=”_blank” in links while writing HTML is very common. But XHTML Strict validator does not support target attribute in links. So for validating a page with XHTML Strict and still use target=”_blank” we need to do the following with the help of JavaScript –

Normal HTML


Validated HTML + JavaScript


This entry was posted in HTML, Javascript and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *