How to validate ‘target=_blank’ in anchor tag with W3C Compatibility

W3CWhile the apply ‘_blank’ value to a native link’s attribute ‘target’ that will give you not validated for W3C, the solution is to handle the click on the link and open it in a new window. Please note this alternative methods are absolutely SEO friendly and W3C valid. The code for the solution is:

<script type=”text/javascript”>
return false;

<a href=”” rev=”solution-02″ rel=”_blank”>Shashidhar Kumar</a>

Like to share it

No comments

Leave a Reply

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