Web & Browser Tips & Tricks

Introduction

This page is for web and browser tips and tricks that I have not written a full web page for.

The information on this page has been tested using Chrome (134.0.6998.178), Edge (134.0.3124.93), Firefox (136.0.4), and Opera (117.0.5408.163).


Adding an Email Address to a Webpage

The mailto link tag (Wikipedia) is quick and easy to use but there are concerns that the address could be picked up by bots and used for spam. Spencer Mortensen has written an excellent article, Email obfuscation that shows various methods of obfuscating the email address and how effective they are at stopping spammers.

I use an SVG file and how to create that is detailed in Protecting your email address via SVG instead of JS (GitHub). Using that gives

which is produced by using <object class="svg-email" data="../common/brisray-email.svg" type="image/svg+xml"></object>