How to type accent marks in macOS

In my previous post I needed to type letter é but didn’t know how. (So I just copied it from the browser page that search result returned, explaining how to type accent marks on macOS 🧠)

But later, I searched and got it working.

We use what is called as Dead Key method. In Keyboard viewer, pressing the ALT (or Option) key, shows the dead keys.

So to type é, I press ALT+e, this produces the accent, then (after releasing ALT) I press e. This adds é