Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Coding writing specifications for head head areas in HTML pages


May 30, 2021 Article blog



We're talking about the head area here, which is between <head> of the web page html code and </head> In w3cschool.cn articles, there are a number of css, html getting started, and other front-end, Python, and other programming techniques tutorials.

Today we'll take a brief look at what's in the head area. There is no emphasis on css and javascript here, both of which should be understood, if you do not understand the relevant tutorials can be consulted in the programming lion w3cschool.

head identifiers that the head area must generally join are:

Company copyright notes

<!--- the site is designed by W3Cschool 01/2021 ---> 

The page displays a character set

Chinese Simplified:

<meta http-equiv="content-type" content="text/html; charset=gb2312">

Chinese Traditional:

<meta http-equiv="content-type" content="text/html; charset=big5">

English:

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
或者:
<meta http-equiv="content-type" content="text/html; charset=utf-8">

Original producer information

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

Introduction to the website

<meta name="description" content="这里填您网站的简介"> 

Search for keywords

<meta name="keywords" content="关键字1,关键字2,关键字3,..."> 

The css specification of the web page

<link href="style/style.css" rel="stylesheet" type="text/css"> 

The title of the page

<title>这里是你的网页标题</title> 

The identifiers that can be added to the head area are:

<!--- 设定网页的到期时间。一旦网页过期,必须到服务器上重新调阅。 ---> 
<meta http-equiv="expires" content="wed, 26 feb 2058 08:21:57 gmt"> 


<!--- 禁止浏览器从本地机的缓存中调阅页面内容。 ---> 
<meta http-equiv="pragma" content="no-cache"> 


<!--- 用来防止别人在框架里调用你的页面。 ---> 
<meta http-equiv="window-target" content="_top"> 


<!--- 自动跳转(5指时间停留5秒)。 ---> 
<meta http-equiv="refresh" content="5;url=www.w3cschool.cn">


<!--- 网页搜索机器人向导.用来告诉搜索机器人哪些页面需要索引,哪些页面不需要索引。 ---> 
<meta name="robots" content="none">
<!--- content的参数有all,none,index,noindex,follow,nofollow。默认是all。  ---> 


<!--- 收藏夹图标 ---> 
<link rel = "shortcut icon" href="favicon.ico"> 

These are the coding and writing specifications that the Programming Lion (w3cschool.cn) has compiled for you about the head head area on the HTML page, and I hope to help you