Class HTMLMetaElement
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The HTMLMetaElement interface contains descriptive metadata about a document provided in HTML as <meta> elements.
This interface inherits all of the properties and methods described in the HTMLElement interface.
[Value("HTMLMetaElement")]
public class HTMLMetaElement : HTMLElement
- Inheritance
-
HTMLMetaElement
- Inherited Members
Remarks
-The HTML element implementing this interface: meta
Constructors
HTMLMetaElement()
public HTMLMetaElement()
Properties
Content
The HTMLMetaElement.content property gets or sets the content attribute of pragma directives and named {{htmlelement("meta")}} data in conjunction with Name or HttpEquiv.
For more information, see the content attribute.
[Value("content")]
public string Content { get; set; }
Property Value
- string
A string.
Remarks
HttpEquiv
The HTMLMetaElement.httpEquiv property gets or sets the pragma directive or an HTTP response header name for the Content attribute.
For more details on the possible values, see the http-equiv attribute.
[Value("httpEquiv")]
public string HttpEquiv { get; set; }
Property Value
- string
A string.
Remarks
Media
The HTMLMetaElement.media property enables specifying the media for theme-color metadata.
[Value("media")]
public string Media { get; set; }
Property Value
- string
A string.
Remarks
The theme-color property enables setting the color of the browser's toolbar or UI in browsers and operating systems that support this property.
The media property enables setting different theme colors for different media values.
Name
The HTMLMetaElement.name property is used in combination with Content to define the name-value pairs for the metadata of a document.
The name attribute defines the metadata name and the content attribute defines the value.
[Value("name")]
public string Name { get; set; }
Property Value
- string
A string.
Remarks
Scheme
IMPORTANT
DeprecatedHTMLMetaElement.scheme property defines the scheme of the value in the Content attribute.The
scheme property was created to enable providing additional information to be used to interpret the value of the content property. The scheme property takes as its value a scheme format (i.e., YYYY-MM-DD) or scheme format name (i.e., ISBN), or a URI providing more information regarding the scheme format. The scheme defines the format of the value of the content attribute.The
scheme content is interpreted as an extension of the element's Name if a browser or user agent recognizes the scheme.
[Value("scheme")]
public string Scheme { get; set; }
Property Value
- string
A string.