ASP.NET HTML Server Controls

# ASP.NET Web Forms - HTML Controls

« Previous
Next Chapter »

HTML server controls are HTML tags understood by the server.

## HTML Server Controls

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

« Previous
Next Chapter »

### WEB HOSTING

UK Reseller Hosting

### WEB BUILDING

FREE Website BUILDER Free HTML5 Templates

### W3SCHOOLS EXAMS

HTML, CSS, JavaScript, PHP, jQuery, XML, and ASP Certifications

### SHARE THIS PAGE

### Color Picker

### HTML/CSS

HTML Tutorial HTML5 Tutorial CSS Tutorial CSS3 Tutorial Bootstrap Tutorial

### JavaScript

JavaScript Tutorial jQuery Tutorial jQuery Mobile Tutorial AngularJS Tutorial AJAX Tutorial JSON Tutorial

### Graphics

Canvas Tutorial SVG Tutorial Google Maps Tutorial

### Server Side

SQL Tutorial PHP Tutorial ASP Tutorial ASP.NET Tutorial VBScript Tutorial AppML Tutorial

### Web

Web Building Web Statistics Web Certification

### XML

XML Tutorial DTD Tutorial Schema Tutorial XML DOM Tutorial XPath Tutorial XSLT Tutorial XQuery Tutorial XSL-FO Tutorial RSS Tutorial WSDL Tutorial

### HTML/CSS

HTML Tag Reference HTML Event Reference HTML Color Reference CSS 1,2,3 Reference Bootstrap Reference

### JavaScript

JavaScript Reference HTML DOM Reference jQuery Reference jQuery Mobile Reference Google Maps Reference

### Server Side

PHP Reference SQL Reference ASP Reference VBScript Reference Razor Reference ASP.NET Reference

### XML

XML DOM Reference XSLT Reference XSL-FO Reference XPath Reference XQuery Reference Schema Reference RSS Reference SVG Reference

### HTML Charsets

HTML Character Sets HTML ASCII HTML ANSI HTML Windows-1252 HTML ISO-8859-1 HTML Symbols HTML UTF-8

### HTML/CSS

HTML Examples CSS Examples

### Browser Scripting

JavaScript Examples HTML DOM Examples jQuery Examples jQuery Mobile Examples AngularJS Examples AJAX Examples

### Server Scripting

PHP Examples ASP Examples VBScript Examples Razor Examples .NET Examples

### XML Languages

XML Examples DTD Examples XML DOM Examples XSL Examples XSLT Examples XPath Examples XQuery Examples Schema Examples RSS Examples SVG Examples