how to add html/ccs element s inside drupal mail function
Your way will work if you enable the html format for email in your website. By using http://drupal.org/project/htmlmail or http://drupal.org/project/mimemail that will help you format the email in html and choose which method that will use for sending email.