Web browser do ne allow access to pi.hole

The first command (sudo nano /etc/resolv.conf) invokes a text editor that opens up the file. From there, you edit it to put in the new nameserver, then save and exit from the editor.

This is done from the Pi terminal. The editor window will look like this (nothing has been edited at this point):

After you edit, Ctrl-X will exit (select save there).