Is it possible to implement new standards such as HTML5 in ASP.NET Web formats?

Is it possible (using HTML5 Shiv, for example) to implement HTML5 on a platform based on Webforms? Will ASP.NET Webforms allow a developer to semantically highlight a page using new HTML5 elements?

+6
standards html5 semantics
source share
3 answers

I would say that ASP.net MVC is more suitable for this type of development, but I don’t see any serious reasons why you could not create web form pages using HTML5, since it is mostly an extension of HTML4.

There are probably many more pages for manual coding than the drag-and-drop of RAD web forms encourages (unfortunately).

+2
source share

You can create your own custom controls that will be displayed without any html elements that you want.

You can display any HTML code that you need on the page, you just need to control this output. Therefore, if a standard set of Asp.Net controls displays on regular HTML elements such as

<label /> and <input /> etc. . You can easily complete your implementation.

There is also nothing to prevent you from adding custom classes or html5 css attributes to the processed HTML code of Asp.Net controls, just keep in mind that HTML5 is not well supported by the actual use of the browser.

+1
source share

I say yes, but if you want to make complex changes, this should not be an easy task. You have full control over the layout of the markup in aspx and ascx files and the layout created in your own controls. In code after code, you can use the Attributes attribute set to add custom HTML5 attributes. To create web controls, you can create your own ControlAdapters that will overwrite the rendering of the assembly in the web controls.

Check the article description for a description of the management adapters.

0
source share

All Articles