#What should be the value of the name attribute when setting web page keywords?
Set the name attribute value of web page keywords to "keywords".
Tag syntax
<meta name="value">
name attribute specifies the name of the metadata. specifies the name for the metadata.
The name attribute specifies the name of the information/value of the content attribute.
Note: If the http-equiv attribute is set, the name attribute should not be set. The
tag provides metadata for an HTML document. The metadata will not be displayed on the client, but will be parsed by the browser.
The META element is usually used to specify the description, keywords, last modification time of the file, author and other metadata of the web page.
Metadata can be called using browsers (how content is displayed or pages are reloaded), search engines (keywords), or other web services.
Example 1 - Define document keywords for search engines:
<meta name="keywords" content="HTML, CSS, XML, XHTML, JavaScript">
Example 2 - Define web page description:
<meta name="description" content="Free Web tutorials on HTML and CSS">
Example 3 - Define page author:
<meta name="author" content="Hege Refsnes">
Example 4 - Refresh the page every 30 seconds:
<meta http-equiv="refresh" content="30">
Recommended tutorial: html tutorial
The above is the detailed content of What should be the value of the name attribute of the web page keyword?. For more information, please follow other related articles on the PHP Chinese website!