how to change title logo in html code example

Example 1: how to add a title picture in html

<link rel = "icon" type = "image/png" href = "name-of-image.png">

Example 2: html title

<head>
  <title>My page title</title>
</head>
<script>
  document.title = "My new title";
</script>

Example 3: how to add a title in html

<!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>

Example 4: change the title in html using

document.title = "My New Page Title";