title usage html code example
Example 1: html title
<head>
<title>My page title</title>
</head>
<script>
document.title = "My new title";
</script>
Example 2: change html title
<title>This is the title</title>
<head>
<title>My page title</title>
</head>
<script>
document.title = "My new title";
</script>
<title>This is the title</title>