System.Web.UI.HtmlControls.HtmlMeta Class

Allows programmatic access to the HTML <meta> tag on the server.

See Also: HtmlMeta Members


public class HtmlMeta : HtmlControl


The System.Web.UI.HtmlControls.HtmlMeta control provides programmatic access to the HTML <meta> element on the server. The HTML <meta> element is a container for data about the rendered page, but not page content itself. The <meta> tag is placed between the opening and closing HTML <head> elements. Each <meta> element describes a metadata property name and its associated value.

Use the System.Web.UI.HtmlControls.HtmlMeta control's HtmlMeta.Name property to specify the metadata property name, and the HtmlMeta.Content property to specify the metadata property value. Use the HtmlMeta.Scheme property to specify additional information to user agents on how to interpret the metadata property. Use the HtmlMeta.HttpEquiv property in place of the HtmlMeta.Name property when the resulting metadata property will be retrieved using HTTP.

You can get a reference to the page <head> element using the System.Web.UI.Page.Header property of the System.Web.UI.Page object.


Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0