ASP.Net HTML Server Control
 
Introduction to ASP.NET HTML Server Controls
 
ASP.NET HTML Server Controls are the HTML controls that run at the server-side i.e. they have runat=?server? attribute. This attribute indicates that the element should be treated as a server control. You can also have normal HTML controls in your ASP.NET page, but these controls will run only at the client-side. Therefore, using ASP.NET HTML Server Controls you can make full use of the .Net Framework utilities such as ViewState management and validation.
 
By default, HTML elements within an ASP.NET file are treated as plain text and are not accessible programmatically to the page developers. To make these elements programmatically accessible, add a runat="server" attribute. The id attribute is added to identify the server control. The unique id reference can be used to control the server control at run time.
 
Note: All HTML server controls must be within a <form> tag with the runat="server" attribute. The runat="server" attribute indicates that the form should be processed on the server. It also indicates that the enclosed controls can be accessed by server scripts.