Meta setting code, keywords, description, author, refresh

 HTML5 format (recommended)

<meta charset="UTF-8">

HTML4 format 

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

Keyword

Description: keywords are used to tell search engines what the keywords of your webpage are.

<meta name="keywords" content="关键字,keywords"/>

description

Description: description is used to tell search engines the main content of your website.

<meta name="description"content="这是一个描述。">

Author

Description: Annotate the author of the page

<meta name="author"content="root,[email protected]">

refresh

Description: Automatically refresh and point to the new page.

<meta http-equiv="refresh" content="2;URL=http://www.baidu.com">--2秒后刷新

 

Guess you like

Origin blog.csdn.net/springlan/article/details/106434164