document.title = "My New Page Title";
<!DOCKTYPE html> <html> <head> <title>This Is A Website Title...</title> </head> <body> <p>How to add a Title to a HTML website...</p> </body> </html>