The href HTML tag won't let you have any spaces because it is treating it the same as it would a URL, which never contains spaces. Instead of spaces, you'll want to use the HTML translation of a space which is %20. So your example will look like this:

<a href="mailto:abc@xyz.com?subject=This%20is%20a%20test">abc@xyz.com</a>