]."/> ].">

Home  >  Article  >  Web Front-end  >  HTML implements adding icons to the title bar of web pages

HTML implements adding icons to the title bar of web pages

王林
王林forward
2020-02-15 18:10:356159browse

HTML implements adding icons to the title bar of web pages

First open the html file and find the

tag;

Then add the following code in the

tag:
<link rel="icon" type="image/x-ico" href="../img/logo.jpg"/>

Related Recommended video tutorial: html video tutorial

Image format: the known .ico and .jpg are both acceptable.

Note: It is best to keep the width and height of the image consistent because the original setting of the icon area is a square area.

The effect is as follows:

HTML implements adding icons to the title bar of web pages

Recommended related article tutorials: html tutorial

The above is the detailed content of HTML implements adding icons to the title bar of web pages. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete