How to modify website title and icon in HTML?

How to modify the website title:

Use the title tag in the head header to modify:

<title>test</title>  

How to modify the favicon of the website:

<link rel="icon" href="test.ico" >

In addition, some browsers also support gif as an icon, the size of GIF should not be too large, 16x16 is recommended

For example: Firefox

<link rel="icon" href="test_ico.gif" type="image/gif" >

Note: If the website language is XHTML, you must add / after >

<link rel="icon" href="test.ico" />

Because XHTML syntax is more rigorous than HTML!

<html>  
  
<head>  
  
<link rel="icon" href="test.ico" />
<title>test</title>  
  
<title>test load css</title>  
  
</head>  
  
<body>  
  
//...  
  
</body>  
  
</html>  


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325784351&siteId=291194637