
- CSS Tutorial
- CSS - Home
- CSS - Introduction
- CSS - Syntax
- CSS - Inclusion
- CSS - Measurement Units
- CSS - Colors
- CSS - Backgrounds
- CSS - Fonts
- CSS - Text
- CSS - Images
- CSS - Links
- CSS - Tables
- CSS - Borders
- CSS - Margins
- CSS - Lists
- CSS - Padding
- CSS - Cursors
- CSS - Outlines
- CSS - Dimension
- CSS - Scrollbars
- CSS Advanced
- CSS - Visibility
- CSS - Positioning
- CSS - Layers
- CSS - Pseudo Classes
- CSS - Pseudo Elements
- CSS - @ Rules
- CSS - Text Effects
- CSS - Media Types
- CSS - Paged Media
- CSS - Aural Media
- CSS - Printing
- CSS - Layouts
- CSS - Validations
- CSS3 Tutorial
- CSS3 - Tutorial
- CSS3 - Rounded Corner
- CSS3 - Border Images
- CSS3 - Multi Background
- CSS3 - Color
- CSS3 - Gradients
- CSS3 - Shadow
- CSS3 - Text
- CSS3 - Web font
- CSS3 - 2d transform
- CSS3 - 3d transform
- CSS3 - Animation
- CSS3 - Multi columns
- CSS3 - User Interface
- CSS3 - Box Sizing
- CSS Responsive
- CSS - Responsive Web Design
- CSS References
- CSS - Questions and Answers
- CSS - Quick Guide
- CSS - References
- CSS - Color References
- CSS - Web browser References
- CSS - Web safe fonts
- CSS - Units
- CSS - Animation
- CSS Resources
- CSS - Useful Resources
- CSS - Discussion
How to set the favicon size in CSS rather than HTML attributes?
A favicon is a little icon visible on the web browser tab, just before the page title. It is generally a logo with the smaller size.
You cannot add the size using CSS. The standards do not support adding Favicon size using CSS. Let’s add it using attributes,
<link rel="icon" type="image/png" href="https://tutorialspoint.com/favicon-16x16.png" sizes="16x16">
The result after adding Favicon above will be,
- Related Articles
- Values to set page size in CSS
- How to set a default column size in CSS Grid
- Set the font size with CSS
- Set the size of the icons in HTML
- What is pica? How to set the font size in CSS using pica?
- How to set font size using CSS Measurement Unit vmin?
- How to define multiple CSS attributes in jQuery?
- HTML Attributes
- Set Responsive Font Size using CSS
- How to use height and width attributes in HTML?
- How to use min and max attributes in HTML?
- Role of size property in CSS to set the size and orientation of a page box
- What are favicon best practices regarding size and format?
- How to add attributes to an HTML element in jQuery?
- Set Font Size with Pixels using CSS

Advertisements