Set the size of the icons in HTML

HTMLWeb DevelopmentFront End Technology

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>
raja
Published on 14-Mar-2018 15:25:15
Advertisements