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

Set the size of the icons in HTML


Use the sizes attribute to set the size of the icon in HTML. You can try to run the following code to implement sizes attribute −

Example

<!DOCTYPE html>
<html>
   <head>
      <link rel = "icon" href = "my_icon.gif" type = "image/gif" sizes = "16x16">
   </head>
   <body>
      <p>This is demo text.</p>
      <p>We set an icon here,</p>
   </body>
</html>