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