JAVASCRIPT

Title in JavaScript

To give a webpage a title, we add <title> and </title> inside the head tags.

Note that the title is not visible but it provides information to the browser.

 <head>
  <title>My webpage</title>
 </head>
 <body>
  <h1>My favorite things</h1>
  <p>
  Raindrops on <em>roses</em><br>
  Whiskers on <strong>kittens</strong> 
  </p>
 </body>

Sign up or download Mimo from the App Store or Google Play to enhance your programming skills and prepare for a career in tech.

You can code, too.

© 2024 Mimo GmbH