Whenever you’re on a web page with Safari, Chrome or Firefox and want to type a code snippet (or maybe just align what you type) you might be tempted to use the tab key…

But no, luck it moves the browser focus instead of inserting a tab into your text.

In order to actually insert a tab you need to press the following key combination: ctrl + alt + tab.

Note: depending on your keyboard, the alt key is sometimes called the option key.