HTML Favicon Icon

A favicon is a small picture that shows up in the browser tab next to the name of the page.

How to Put a Favicon on an HTML Page

You can make your favicon out of any picture you want. You can also make your own favicon on sites like https://www.favicon.cc.

Tip: Since a favicon is small, it should be a simple, high-contrast image.

A favicon is a small image that shows up to the left of the page name in the browser tab.

A Picture of a Favicon

 

\"fav

To add a favicon to your website, either save the image to the root directory of your webserver or make a folder called imgin the root directory and save the image there. \”favicon.ico\” is a common name for a file with a favicon.

After the <title> element, add a <link> element to your \”index.php\” file, like this:

Example

<!DOCTYPE html>
<html>
<head>
<title>Your Page Title</title>
<link rel=\”icon\” type=\”image/x-icon\” href=\”/img/favicon.ico\”>
</head>
<body>

<h1>Your Heading</h1>
<p>Your paragraph.</p>

</body>
</html>

 

Favicon File Format Support

The supported file formats for favicon images are displayed in the following table:

Browser ICO PNG GIF JPEG SVG
Edge Yes Yes Yes Yes Yes
Chrome Yes Yes Yes Yes Yes
Firefox Yes Yes Yes Yes Yes
Opera Yes Yes Yes Yes Yes
Safari Yes Yes Yes Yes Yes
Related Posts
Introduction to HTML

HTML Introduction HTML is the most common language used to mark up Web pages. What does HTML mean? Hyper Text Read more

What is HTML

HTML stands for Hyper Text Markup Language, which is a programming language used to make web pages and web apps. Read more

HTML Basic Examples

In this chapter, we\'ll show you some simple examples of HTML code. Don\'t worry if we use tags that you Read more

HTML text Editors

Editors for HTML text HTML files are text files, so any text editor can be used to make them. Text Read more

HTML Tags

Learn HTML Tags HTML tags are kind of like keywords that tell a web browser how to format and show Read more

HTML Elements

Elements make up an HTML file. These elements are what make web pages and tell you what content is on Read more

HTML Attributes

Attribute in HTML Attributes in HTML are special words that tell you more about an element. Attributes change the way Read more

HTML Headings

Headings in HTML The <h1> to <h6> tags are used to set up headings in HTML. <h1> shows which heading Read more

Scroll to Top