Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should i use HTML comments in my email templates?

Trying to see if there are any negatives to adding HTML comments to my html emails?

Any feedback is great.

Thanks

like image 637
estern Avatar asked Sep 18 '25 20:09

estern


2 Answers

I don't think so. I've made several professional e-mail templates for Outlook that contained a little notice in the comments. I've never had any problems with that. I even had fun to see that I could find an e-mail sent by a customer, because Google had indexed it, including the comment. :D

It does increase the size of the e-mail a little, so use with care.

like image 68
GolezTrol Avatar answered Sep 20 '25 10:09

GolezTrol


None, unless the number of comments are too many that they affect DOM parsing by the browser/email client and congest network traffic.

like image 33
bcosca Avatar answered Sep 20 '25 10:09

bcosca