Computer >> Computer tutorials >  >> Programming >> HTML

How do we add extra information about an element in HTML?


Use the title attribute to add extra information in an HTML document.

Example

You can try to run the following code to implement title attribute −

<!DOCTYPE html>
<html>
   <head>
      <title>HTML base Tag</title>
      <base href = "https://www.qries.com" />
   </head>
   <body>
      Qries.com <img src = "https://www.qries.com/images/banner_logo.png" />
   </body>
</html>