There are a few options and they are different depending on whether you have an ipad or if use Mac or Windows.
The ipad is the easiest, just tap and hold the letter that you would like to add an accent to. Eg. tap and hold ‘e’ and you will get a number of options pop up for different accents that can go on an ‘e’, choose ‘é’ and it will be inserted into your text.
Also on the numbers layout tap and hold the exclamation mark for an upside down exclamation mark and the question mark for an upside down question mark. Another trick is to hold down the period key on the numbers layout to get at an ellipsis.
Now for Macs and PC’s, the first way is just using the keyboard.
How to type accents on letters on a Mac:
For á, é, ó, ú, í:
Hold down the Option key and press the letter ‘e’
Let those keys go and then type the letter that you want the accent to appear on:
Opt + e, then a = á
Opt + e, then e = é
Opt + e, then i = í
Opt + e, then o = ó
Opt + e, then u = ú
For the ñ:
Hold down the Option key while you type the n; release and type n again.
Opt + n, then n = ñ
For the ü (called a diaeresis):
Hold down the Option key, then press the u key.
Let both keys go and type u again.
Opt + u, then u = ü
For an upside down (inverted) exclamation mark ¡:
Hold the Opt key down and press 1
For an upside down (inverted) question mark ¿:
Hold the Opt key and the shift key down and press the ? key
Opt + shift + ?=¿
How to type accents on letters with Windows:
Hold your Alt key down and type the following three or four digit combinations:
NB: These will not work for everyone
Some keyboards require that you use the “numeric keypad” located to the side, rather than the numbers along the top. And on some keyboards, only one of the two Alt keys will work for this.