Freigeben über


HtmlHead Server Control Declarative Syntax 

Creates a server-side control that maps to the head HTML element.

<head
    Class="string"
    EnableViewState="false|true"
    Id="string"
    Profile="string"
    Visible="false|true"
    OnDataBinding="OnDataBinding event handler"
    OnDisposed="OnDisposed event handler"
    OnInit="OnInit event handler"
    OnLayoutComplete="OnLayoutComplete event handler"
    OnLoad="OnLoad event handler"
    OnPreRender="OnPreRender event handler"
    OnReadyStateChange="OnReadyStateChange event handler"
    OnUnload="OnUnload event handler"
    runat="server"
>
<!--Other controls such as HtmlTitle and HtmlLink.-->
</head>

Remarks

The HTML head element is a container for additional information about the page. For more information, see HtmlHead.

Example

The following codes example demonstrates how to use the HtmlHead declaratively.

<head id="PageHead" runat="server">
    <title>HtmlHead Control</title>
</head>
<head id="PageHead" runat="server">
    <title>HtmlHead Control</title>
</head>

See Also

Reference

HtmlHead

Other Resources

HTML Server Controls