HtmlMeta Class
Assembly: System.Web (in system.web.dll)
The 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 HtmlMeta control's Name property to specify the metadata property name, and the Content property to specify the metadata property value. Use the Scheme property to specify additional information to user agents on how to interpret the metadata property. Use the HttpEquiv property in place of the Name property when the resulting metadata property will be retrieved using HTTP.
You can get a reference to the page <head> element using the Header property of the Page object.
| Topic | Location |
|---|---|
| How to: Add HTML Server Controls to a Web Page Using ASP.NET Syntax | Building ASP .NET Web Applications |
| How to: Set HTML Server Control Properties Programmatically | Building ASP .NET Web Applications |
| How to: Add HTML Server Controls to a Web Page Using ASP.NET Syntax | Building ASP .NET Web Applications |
| How to: Set HTML Server Control Properties Programmatically | Building ASP .NET Web Applications |
- AspNetHostingPermission for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
- AspNetHostingPermission for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.
System.Web.UI.Control
System.Web.UI.HtmlControls.HtmlControl
System.Web.UI.HtmlControls.HtmlMeta