object name extends Attr
param - Name of the parameter.
a - This attribute was required for anchors defining a possible target location within a page. In HTML 4.01, id
and name
could be used simultaneously on a <a>
element as long as they have identical values.
Usage note: This attribute is obsolete in HTML5, use the global attribute id
instead.
input, keygen - The name of the control, which is submitted with the form data.
button - The name of the button, which is submitted with the form data.
iframe - A name for the embedded browsing context (or frame). This can be used as the value of the target
attribute of an <a>
, <form>
or <base>
element, or the formtarget attribute of an <input>
or <button>
element. It can also be used as the value of the windowName
parameter in the window.open()
method.
map - The name attribute gives the map a name so that it can be referenced. The attribute must be present and must have a non-empty value with no space characters. The value of the name attribute must not be a compatibility-caseless match for the value of the name attribute of another map element in the same document. If the id attribute is also specified, both attributes must have the same value.
img - A name for the element. It is supported in HTML 4 only for backward compatibility. Use the id
attribute instead.
output - The name of the element.
fieldset - The name associated with the group.
The label for the field set is given by the first <legend>
element that is a child of this field set.
form - The name of the form. In HTML 4, its use is deprecated (id
should be used instead). It must be unique among the forms in a document and not just an empty string in HTML 5.
area - Define a names for the clickable area so that it can be scripted by older browsers.
textarea - The name of the control.
select - This attribute is used to specify the name of the control.
object - The name of valid browsing context (HTML5), or the name of the control (HTML 4).
meta -
This attribute defines the name of a piece of document-level metadata. It should not be set if one of the attributes itemprop
, http-equiv
or charset
is also set.
This metadata name is associated with the value contained by the content
attribute. The possible values for the name attribute are:
- application-name
defines the name of the application running in the web page.
Note:
- Browsers may use this to identify the application. It is different from the <title>
element, which usually contain the application name, but may also contain information like the document name or a status.
- Simple web pages shouldn't define an application-name.
- author
defines the name of the document's author.
- description
contains a short and accurate summary of the content of the page. Several browsers, like Firefox and Opera, use this as the default description of bookmarked pages.
- generator
contains the identifier of the software that generated the page.
- keywords
contains words relevant to the page's content, separated by commas.
- referrer
controls the Referer
HTTP header attached to requests sent from the document:
no-referrer | Do not send a HTTP Referer header. |
origin | Send the origin of the document. |
no-referrer-when-downgrade | Send the origin as referrer to URLs as secure as the current page, (https→https), but don't send a referrer to less secure URLs (https→http). This is the default behavior. |
origin-when-crossorigin | Send the full URL (stripped of parameters) for same-origin requests, but only send the origin for other cases. |
unsafe-URL | Send the full URL (stripped of parameters) for same-origin or cross-origin requests. |
always
, default
, and never
for referrer.
- Dynamically inserting <meta name="referrer">
(with document.write
or appendChild
) makes referrer behavior unpredictable.
- When several conflicting policies are defined, the no-referrer policy is applied.
The attribute may also have a value taken from the extended list defined on WHATWG Wiki MetaExtensions page. Although none have been formally accepted yet, a few commonly used names are:
Finally, a few names are in common use, though not in the process of being standardized:
- creator
defines the name of the creator of the document, such as an organization or institution. If there are more than one, several <meta>
elements should be used.
- googlebot
, a synonym of robots
, but is only followed by Googlebot, the indexing crawler for Google.
- publisher
defines the name of the document's publisher.
- robots
defines the behavior that cooperative crawlers, or "robots", should use with the page. It is a comma-separated list of the values below: Value | Description | Used by |
---|---|---|
index | Allows the robot to index the page (default). | All |
noindex | Requests the robot to not index the page. | All |
follow | Allows the robot to follow the links on the page (default). | All |
nofollow | Requests the robot to not follow the links on the page. | All |
none | Equivalent to noindex, nofollow | |
noodp | Prevents using the Open Directory Project description, if any, as the page description in search engine results. | Google, Yahoo, Bing |
noarchive | Requests the search engine not cache the page content. | Google, Yahoo, Bing |
nosnippet | Prevents displaying any description of the page in search engine results. | Google, Bing |
noimageindex | Requests this page not appear as the referring page of an indexed image. | |
nocache | Synonym of noarchive . | Bing |
noindex
will work, but only after the robot visits the page again. Ensure that the robots.txt
file is not preventing revisits.
- Some values are mutually exclusive, like index
and noindex
, or follow
and nofollow
. In these cases the robot's behavior is undefined and may vary between them.
- Some crawler robots, like Google, Yahoo, and Bing, support the same values for the HTTP header X-Robot-Tags
; this allows non-HTML documents like images to use these rules.
- slurp
, a synonym of robots
, but only for Slurp, the crawler for Yahoo Search.
- viewport
, which gives hints about the size of the initial size of the viewport. Used by mobile devices only. Value | Possible subvalues | Description |
---|---|---|
width | A positive integer number, or the text device-width | Defines the pixel width of the viewport, or allows the viewport to adapt to the device's screen width. |
height | A positive integer, or the text device-height | Defines the height of the viewport. Not used by any browser. |
initial-scale | A positive number between 0.0 and 10.0 | Defines the ratio between the device width (device-width in portrait mode or device-height in landscape mode) and the viewport size. |
maximum-scale | A positive number between 0.0 and 10.0 | Defines the maximum amount to zoom in. It must be greater or equal to the minimum-scale or the behavior is undefined. Browser settings can ignore this rule, and iOS10+ ignores it by default. |
minimum-scale | A positive number between 0.0 and 10.0 | Defines the minimum zoom level. It must be smaller or equal to the maximum-scale or the behavior is undefined. Browser settings can ignore this rule, and iOS10+ ignores it by default. |
user-scalable | yes or no | If set to no , the user is not able to zoom in the webpage. The default is yes . Browser settings can ignore this rule, and iOS10+ ignores it by default. |
Specification | Status | Comment |
---|---|---|
CSS Device Adaptation The definition of '<meta name="viewport">' in that specification. | Working Draft | Non-normatively describes the Viewport META element |
@viewport
Notes:
- Though unstandardized, this declaration is respected by most mobile browsers due to de-facto dominance.
- The default values may vary between devices and browsers.
- To learn about this declaration in Firefox for Mobile, see this article.
- Alphabetic
- By Inheritance
- name
- Attr
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type attrType = _name_attr.type
- Definition Classes
- name → Attr
- type supports[T <: Tag] = (AttrPair[attrType]) => AttrPair[core.Attr.supports.T.tagType]
- Definition Classes
- Attr
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def :=(v: Option[String]): OptionalAttrPair[_name_attr.type]
- Annotations
- @inline()
- def :=(v: String): AttrPair[_name_attr.type]
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- implicit object tag extends TagElement