html why use title tag code example
Example 1: html title tag
<title>Website Title</title>
Example 2: change the title in html using
document.title = "My New Page Title";
<title>Website Title</title>
document.title = "My New Page Title";