HTML basic tutorial tag

The main function is to provide meta information of the web page. For example: specify the search keywords of the web page.

The tag has two attributes: http-equiv and name.

http-equiv attribute

  • Function: simulate http protocol file header information, when the information comes from the server When passed to the client, it tells the browser how to display the web page content correctly.

  • The http-equiv attribute is generally used in conjunction with the content attribute. The Content attribute specifies the detailed parameters of the information.

(1) Set the character set of the web page

We have come across this many times in the previous examples

(2) Automatically refresh the web page

//Automatically refresh the web page every 2 seconds

//After 2 seconds, jump to Baidu

to see an example

     

欢迎加入php.cn

希望你能够在这里学的开心


name attribute

The name attribute is mainly used to set the search keywords, copyright information, author, etc. of the web page .

Look at the search results of a website

9.png

(1) The first part is to set the web search keywords

小 pigcms, pigcms, WeChat public platform source code, WeChat distribution, WeChat development, WeChat o2o source code..." />

(2) The second part is to set the web page description information

Xiaozhucms is a national high-tech enterprise, a dual-software certified enterprise, and a senior WeChat development expert , providing WeChat marketing system, o2o system, WeChat distribution, WeChat application account source code program, company customers all over the world”>

Continuing Learning
||

欢迎加入php.cn

希望你能够在这里学的开心

submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!