I started to learn ASP.NET MVC and some questions arose:

1) How does the html tag marked as asp differ from the usual?

For example, <asp:Label></asp:Label>

2) In the Html editor, you can call @Html. which gives access to tags in an object manner.

I understand correctly that this is only syntactic sugar and all this can be done using ordinary Html tags? What notation is usually used object or Html or they are mixed?

3) Is there a visual editor besides Html that allows you to see what the page will look like without compiling?

4) Does ASP.NET MVC have any standard controls other than Html attributes or is it available only in Web Forms?

    1 answer 1

    1) asp tags are special tags that are processed on the server, they turn into ordinary HTML tags, and then the page is given to the client.

    2) Yes, it is only syntactic sugar. Before the advent of ASP, .NET Core used object, with the advent of ASP .NET Core, HTML-like tags appeared, which are likely to be more popular. But then again, in each organization, their quirks and their manners, so it’s worth knowing both.

    3) Probably not. But the Razor pages are not compiled (as far as I know), you can simply overwrite them, update the page in the browser and you will pick up a new version of the file.

    4) Standard web controls are HTML controls, others aren't, and the Html object itself provides more convenient access to the same controls, in object style, for more convenience.

    Also, you can create your own tags (TagHelpers). You can read about it here .