html_meta.asp@output=print
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML Meta Element</title>
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />
<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</head>
<body>
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
<h1>HTML Meta</h1>
<a href="html_head.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="html_url.asp"><img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>
<hr />
<h2>Examples</h2>
<p><a target="_blank" href="tryit.asp@filename=tryhtml_meta">Document description</a><br />
Information inside a meta element describes the document.</p>
<p><a target="_blank" href="tryit.asp@filename=tryhtml_keywords">Document keywords</a><br />
Information inside a meta element describes the document's keywords.</p>
<p><a target="_blank" href="tryit.asp@filename=tryhtml_redirect">Redirect a user</a><br />
This example demonstrates how to redirect a user if your site address has
changed.</p>
<hr />
<h2>The Meta Element
</h2>
<p>As we explained in the previous chapter, the head element contains general
information (meta-information) about
a document.
</p>
<p>HTML also includes a meta element that goes inside the head element. The
purpose of the meta element is to provide meta-information about the document.
</p>
<p>Most often the meta element is used to provide information that is relevant
to browsers or search engines like
describing the content of your document.</p>
<p><b>Note:</b> W3C states that "<i>Some user agents support the use of META to
refresh the current page after a specified number of seconds, with the option of
replacing it by a different URI. Authors should not use this technique to
forward users to different pages, as this makes the page inaccessible to some
users. Instead, automatic page forwarding should be done using server-side
redirects</i>" at
<a target="_blank" href="../../www.w3.org/TR/html4/struct/global.html#adef-http-equiv">http://www.w3.org/TR/html4/struct/global.html#adef-http-equiv</a>.</p>
<hr />
<h2>Keywords for Search Engines</h2>
<p>Some search engines on the WWW will use the name and content attributes of
the meta tag to index your pages.</p>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
<tr>
<td valign="top"><b>This meta element defines a description of your page:
</b>
<p><meta name="description" content="Free Web tutorials
on HTML, CSS, XML, and XHTML"></p>
</td>
</tr>
</table>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
<tr>
<td valign="top"><b>This meta element defines keywords for your page:</b>
<p>
<meta name="keywords" content="HTML, DHTML, CSS, XML,
XHTML, JavaScript, VBScript"></p>
</td>
</tr>
</table>
<p>The intention of the name and content attributes is to describe the content of
a page.
</p>
<p>However, since too many webmasters have used meta tags for spamming, like
repeating keywords to give pages a higher ranking, some search engines have stopped using them entirely.
</p>
<p>You can read more about search engines in our <a href="../default.asp">Web
Building Tutorial</a>.
</p>
<hr />
<h2>Unknown Meta Attributes</h2>
<p>Sometimes you will see meta attributes that are unknown to you like this:</p>
<table class="ex" cellspacing="0" border="1" width="100%" cellpadding="3">
<tr>
<td valign="top"><meta name="security" content="low">
</td>
</tr>
</table>
<p>Then you just have to accept that this is something unique to the site or to the
author of the site, and that it has probably no relevance to you.
</p>
<p>You can see a complete list of the meta element attributes in our<br />
<a href="html_reference.asp">Complete
HTML 4.01 Tag Reference</a>.
</p>
<hr />
<a href="html_head.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="html_url.asp"><img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -