HTML tags

WBOY
Release: 2023-09-04 19:25:03
forward
1221 people have browsed it

The elements in HTML are used to describe metadata, that is, description, keywords, document author, etc. This metadata is not displayed on the page, but is used by search engines, web browsers, etc.

Now you can also set the viewport under to set the dimensions of the web page -

<meta name="viewport" content="width=device-width, initial-scale=1.0">
Copy after login

Here are the properties-

Sr.NoType and Description
1Name

The name of the attribute. Can be anything. Examples include keywords, description, author, revision, generator, etc.

2 Content

Specifies the value of the attribute.

3 Scheme (deprecated)

Specify the scheme for interpreting attribute values ​​( as declared in the content attribute).

4http-equiv

is used for http response message headers. For example, http-equiv can be used to refresh a page or set a cookie. Values ​​include content-type, expires, refresh, and set-cookie.

5 Character set

Character encoding.

Example< /h2>

Now let’s look at an example of implementing the tag -

Live Demonstration

<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Learn for free">
<meta name="keywords" content="Video tutorials, free tutorials, learn, web">
<meta http-equiv="refresh" content="20">
<meta name="author" content="Jack Sparrow">
</head>
<body>
<h2>Tutorials</h2>
<p>Programming tutorials for free:</p>
<ol>
<li>Java</li>
<li>C++</li>
<li>C</li>
<li>C#</li>
</ol>
</body>
</html>
Copy after login

Output

This will produce the following output-

HTML tags

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

Related labels:
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!