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">
Here are the properties-
Sr.No | Type and Description |
---|---|
1 | Name strong> 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). |
4 | http-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. |
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>
This will produce the following output-
The above is the detailed content of HTML tags. For more information, please follow other related articles on the PHP Chinese website!