एचटीएमएल संदर्भ

वर्णमाला द्वारा HTML श्रेणी के अनुसार HTML एचटीएमएल ब्राउज़र समर्थन एचटीएमएल गुण HTML वैश्विक गुण एचटीएमएल घटनाक्रम एचटीएमएल रंग एचटीएमएल कैनवास एचटीएमएल ऑडियो/वीडियो एचटीएमएल कैरेक्टर सेट एचटीएमएल सिद्धांत एचटीएमएल यूआरएल एनकोड एचटीएमएल भाषा कोड एचटीएमएल देश कोड HTTP संदेश HTTP तरीके पीएक्स से ईएम कन्वर्टर कुंजीपटल अल्प मार्ग


एचटीएमएल <मेटा> नाम विशेषता

❮ एचटीएमएल <मेटा> टैग

उदाहरण

किसी HTML दस्तावेज़ के विवरण, कीवर्ड और लेखक को परिभाषित करने के लिए नाम विशेषता का उपयोग करें। पेज के आयामों और विभिन्न उपकरणों के लिए स्केलिंग को नियंत्रित करने के लिए व्यूपोर्ट को भी परिभाषित करें:

<head>
  <meta name="description" content="Free Web tutorials">
  <meta name="keywords" content="HTML,CSS,JavaScript">
  <meta name="author" content="John Doe">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

विशेषता मेटाडेटा के nameलिए नाम निर्दिष्ट करती है।

विशेषता विशेषता की nameजानकारी/मान के लिए एक नाम निर्दिष्ट करती contentहै।

नोट: यदि http-equivविशेषता सेट है, तो nameविशेषता सेट नहीं की जानी चाहिए।

HTML5 ने टैग के माध्यम से वेब डिजाइनरों को व्यूपोर्ट (वेब ​​पेज के उपयोगकर्ता के दृश्य क्षेत्र) पर नियंत्रण करने की एक विधि पेश की <meta>(नीचे "व्यूपोर्ट सेट करना" उदाहरण देखें)।


ब्राउज़र समर्थन

Attribute
name Yes Yes Yes Yes Yes

वाक्य - विन्यास

<meta name="value">

गुण मान

Value Description
application-name Specifies the name of the Web application that the page represents
author Specifies the name of the author of the document. Example:
<meta name="author" content="John Doe">
description Specifies a description of the page. Search engines can pick up this description to show with the results of searches. Example:
<meta name="description" content="Free web tutorials">
generator Specifies one of the software packages used to generate the document (not used on hand-authored pages). Example:
<meta name="generator" content="FrontPage 4.0">
keywords Specifies a comma-separated list of keywords - relevant to the page (Informs search engines what the page is about).

Tip: Always specify keywords (needed by search engines to catalogize the page). Example:
<meta name="keywords" content="HTML, meta tag, tag reference">
viewport Controls the viewport (the user's visible area of a web page).

The viewport varies with the device, and will be smaller on a mobile phone than on a computer screen.

You should include the following <meta> viewport element in all your web pages:

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

A <meta> viewport element gives the browser instructions on how to control the page's dimensions and scaling.

The width=device-width part sets the width of the page to follow the screen-width of the device (which will vary depending on the device).

The initial-scale=1.0 part sets the initial zoom level when the page is first loaded by the browser.

Here is an example of a web page without the viewport meta tag, and the same web page with the viewport meta tag:

Tip: If you are browsing this page with a phone or a tablet, you can click on the two links below to see the difference.


You can read more about the viewport in our Responsive Web Design - The Viewport Tutorial.


❮ एचटीएमएल <मेटा> टैग