Include metadata in HTML documents

PHPz
Release: 2023-08-19 15:57:13
forward
726 people have browsed it

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>
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!