Home  >  Article  >  Web Front-end  >  Include metadata in HTML documents

Include metadata in HTML documents

PHPz
PHPzforward
2023-08-19 15:57:13757browse

Include metadata in HTML documents

HTML tag is used to declare metadata of HTML documents. Here are the properties:

Properties

Value

Description

Name

author

description

keywords

generator

revised

others

The name of the attribute.

content

text

defined with http-equiv or Meta information associated with name.

http-equiv

content-type

expires

refresh

set-cookie

Connect the content attribute to the HTTP header.

scheme

Text

Definition is used to explain the content attribute The format of the value.

Example

You can try running the following code to include the metadata:

<html>
   <head>
      <title>HTML meta tag</title>
      <meta name = "keywords" content = "HTML, meta tag, metadata" />
      <meta name = "description" content = "Description of the document" />
      <meta http-equiv = "refresh" content = "10" />
   </head>
   <body style = "background-color:gray">
      Document content goes here
   </body>
</html>

The above is the detailed content of Include metadata in HTML documents. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete