title in html code example
Example 1: title tag html
<title>Title to appear in the browsers tab of the page</title>
Example 2: change the title in html using
document.title = "My New Page Title";
<title>Title to appear in the browsers tab of the page</title>
document.title = "My New Page Title";