HTML server controls are HTML tags understood by the server.
HTML elements in ASP.NET files are, by default, treated as text. To make these elements programmable, add a runat="server" attribute to the HTML element. This attribute indicates that the element should be treated as a server control.
Note: All HTML server controls must be within a <form> tag with the runat="server" attribute!
Note: ASP.NET requires that all HTML elements must be properly closed and properly nested.
| HTML Server Control | Description |
|---|---|
| HtmlAnchor | Controls an <a> HTML element |
| HtmlButton | Controls a <button> HTML element |
| HtmlForm | Controls a <form> HTML element |
| HtmlGeneric | Controls other HTML element not specified by a specific HTML server control, like <body>, <div>, <span>, etc. |
| HtmlImage | Controls an <image> HTML element |
| HtmlInputButton | Controls <input type="button">, <input type="submit">, and <input type="reset"> HTML elements |
| HtmlInputCheckBox | Controls an <input type="checkbox"> HTML element |
| HtmlInputFile | Controls an <input type="file"> HTML element |
| HtmlInputHidden | Controls an <input type="hidden"> HTML element |
| HtmlInputImage | Controls an <input type="image"> HTML element |
| HtmlInputRadioButton | Controls an <input type="radio"> HTML element |
| HtmlInputText | Controls <input type="text"> and <input type="password"> HTML elements |
| HtmlSelect | Controls a <select> HTML element |
| HtmlTable | Controls a <table> HTML element |
| HtmlTableCell | Controls <td>and <th> HTML elements |
| HtmlTableRow | Controls a <tr> HTML element |
| HtmlTextArea | Controls a <textarea> HTML element |
The perfect solution for professionals who need to balance work, family, and career building.
More than 10 000 certificates already issued!
The HTML Certificate documents your knowledge of HTML.
The HTML5 Certificate documents your knowledge of advanced HTML5.
The CSS Certificate documents your knowledge of advanced CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The jQuery Certificate documents your knowledge of jQuery.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
Your message has been sent to W3Schools.