Month End Sale: Get Extra 10% OFF on Job-oriented Training! Offer Ending in
D
H
M
S
Get Now
HTML favicon

HTML favicon

14 May 2024
Advanced
1.14K Views
3 min read

HTML favicon

HTML favicon is a small file that contains one or more icons representing the website or a blog. Favicon is also known as a tab icon, website icon, URL icon, or bookmark icon.
The HTML Favicon icon is displayed on the address bar of the web page, at the browser's tab, in browser history, bookmark bar, etc. The image format of a favicon is .ico file format. Various file formats are available, but the .ico format is supported by every browser. There are many features other than Favicon which you can learn with the help of HTML Online Training.

How to Create a Favicon in HTML

These are the following steps for creating the favicon:
  • Click on the given URL, to make the favicon: https://www.favicon.cc/
  • When the favicon is created successfully, we can download the favicon by clicking on the download favicon option.
  • After downloading, the favicon with the name favicon.ico is available in the file system drive.
Read More:- HTML Interview Questions and Answers 

How to add Favicon in HTML

These are the following steps to let you know How to add favicon in HTML file:
  • Open the HTML file. Then use the given syntax to insert the favicon in the HTML file.

Syntax:

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
  •  This syntax must be used in our HTML file. Then we have to save the file.
  •  Now. You can open the HTML file in any browser. We will see the icon on the web page.
Example
<html> 
<head> 
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> 
</head> 
<title> favicon html code </title> 
<body> 
<br> 
<br> 
<p align="center"> 
<img src="image.jpg"> 
</p> 
</body> 
</html>
Summary
HTML favicon can improve the user experience by making it easier to identify and differentiate between different websites in the browser. They can also help in branding a website by displaying a logo or other distinctive image. In this article, we learned what is Favicon and how can we create a favicon HTML code in order to make an attractive website and better user experience
Learn more in our HTML Certification Course.

Take our Html skill challenge to evaluate yourself!

In less than 5 minutes, with our skill challenge, you can identify your knowledge gaps and strengths in a given skill.

GET FREE CHALLENGE

Share Article

Live Classes Schedule

Our learn-by-building-project method enables you to build practical/coding experience that sticks. 95% of our learners say they have confidence and remember more when they learn by building real world projects.
Software Architecture and Design Training Jul 28 SAT, SUN
Filling Fast
05:30PM to 07:30PM (IST)
Get Details
.NET Solution Architect Certification Training Jul 28 SAT, SUN
Filling Fast
05:30PM to 07:30PM (IST)
Get Details
Azure Developer Certification Training Jul 28 SAT, SUN
Filling Fast
10:00AM to 12:00PM (IST)
Get Details
Advanced Full-Stack .NET Developer Certification Training Jul 28 SAT, SUN
Filling Fast
07:00AM to 09:00AM (IST)
Get Details
ASP.NET Core Certification Training Jul 28 SAT, SUN
Filling Fast
07:00AM to 09:00AM (IST)
Get Details
Data Structures and Algorithms Training with C# Jul 28 SAT, SUN
Filling Fast
08:30PM to 10:30PM (IST)
Get Details
Microsoft Azure Cloud Architect Aug 11 SAT, SUN
Filling Fast
03:00PM to 05:00PM (IST)
Get Details
Angular Certification Course Aug 11 SAT, SUN
Filling Fast
09:30AM to 11:30AM (IST)
Get Details
ASP.NET Core Project Aug 24 SAT, SUN
Filling Fast
07:00AM to 09:00AM (IST)
Get Details

Can't find convenient schedule? Let us know

About Author
Sakshi Dhameja (Author and Mentor)

She is passionate about different technologies like JavaScript, React, HTML, CSS, Node.js etc. and likes to share knowledge with the developer community. She holds strong learning skills in keeping herself updated with the changing technologies in her area as well as other technologies like Core Java, Python and Cloud.

Self-paced Membership
  • 22+ Video Courses
  • 800+ Hands-On Labs
  • 400+ Quick Notes
  • 55+ Skill Tests
  • 45+ Interview Q&A Courses
  • 10+ Real-world Projects
  • Career Coaching Sessions
  • Email Support
Upto 60% OFF
Know More
Accept cookies & close this