HTML tags --meta tags

meta element provides meta information about the page (meta-information), such as for search engines and the frequency of updating the description and keywords.

meta tags at the head of the document does not contain any content. Meta tags attribute defines the name associated with the document / value pairs.

<!doctype html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<!-- 
			使用meta标签还可以用来设置网页的关键字
		-->
		<meta name="keywords" content="HTML5,JavaScript,前端,Java" />
		
		<!-- 
			还可以用来指定网页的描述
			搜索引擎在检索页面时,会同时检索页面中的关键词和描述,但是这两个值不会影响页面在搜索引擎中的排名
		-->
		<meta name="description" content="发布h5、js等前端相关的信息" />
		
		
		<!-- 
			使用meta可以用来做请求的重定向
			<meta http-equiv="refresh" content="秒数;url=目标路径" />
		-->
		<meta http-equiv="refresh" content="5;url=http://www.baidu.com" />
		
	</head>
	<body>
	<!-- 我是一个注释
		<h1>这是一个标题</h1>
	-->
		<h1>5秒以后跳转页面</h1>
		
	</body>
</html>
Published 24 original articles · won praise 25 · views 7310

Guess you like

Origin blog.csdn.net/weixin_44759938/article/details/104365846
Recommended