Posts Tagged "xhtml"

Expanding the Mailto tag

Expanding the Mailto: tag Introduction The Mailto tag is used as a way to include an email address on a web page which can be clicked on thus opening the visitors default email client with the email address pre-filled. The mailto code can e expanded to include multiple email addresses, email addresses to CC and BCC, the email subject and even a message body. Mailto: Tag The following is the basic mailto tag: <a href=””>Mailme!</a> Which would result in: Mailme!…

Read More

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

While 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”> $(document).ready(function(){ $(‘A[rel=”_blank”]’).click(function(){$(this).attr(‘href’)); return false; }); }); </script> <a href=”” rev=”solution-02″ rel=”_blank”>Shashidhar Kumar</a> Shashi Dhar KumarShashi Dhar Kumar Experience in Web/software development including client…

Read More