There are mainly two ways of doing this:
Note: apparently, this doesn't work on my website (I might have done something wrong with my html code), but when I use it offline on any coding environment, it works flawlessly.