Home  >  Article  >  Web Front-end  >  What does runat mean in html

What does runat mean in html

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-06-07 10:07:354222browse

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.

What does runat mean in html

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

tag with the runat="server" attribute!

Note: ASP.NET requires that all HTML elements must be properly closed and nested.

What does runat mean in html

runat="server" means that the content in your Form is run on the server side.

If you drag in an HTML control, you can Add this to this control, and then you can get its value in your background code

Recommended learning:html video tutorial

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn