Home > Article > Web Front-end > What does runat mean in html
In HTML, runat is a server control attribute. You only need to add the "runat="server"" attribute to the form tag; this attribute means that the Form content is run on the server side. If you drag in an HTML control, you can add this control, and then the value can be obtained in the background code.
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
HTML elements in ASP.NET files are processed as text by default. To make these elements programmatic, add the runat="server" attribute to the HTML element. This attribute indicates that the element should be handled as a server control.
Note: All HTML server controls must be located within the
The above is the detailed content of What does runat mean in html. For more information, please follow other related articles on the PHP Chinese website!