You know, HTML and. aspx need to know the difference between static and dynamic Web pages first.
static Web pages: No background database, no program can not interact with the Web page, mainly used to set the style of the page, display content.
Dynamic Web pages: relative to a static Web page, you can interact with the data in the background, and it needs to be returned to the client browser after processing the server.
As far as HTML and ASPX are concerned, it is understood that pure, broken HTML is a static Web page with an extension of. html, while dynamic pages embed dynamic instructions in static HTML (these dynamic instructions can be the scripting language for ASP, PHP, and so on). . aspx
So what's the difference between a server's handling of the two?
It can be seen that if the client sends a static page request of the HTML type, the server is returned directly to the client's browser for display. If the. aspx type of Dynamic Web server needs to be judged on the server side that there is a service-side scripting language that needs to be processed, it is not generated directly. HTML is returned to the client, and if there is one, the script is processed to merge the processed script and the original HTML into an. html file to be displayed to the client.
Attention:
In the browser can parse: HTML, CSS, JS
Common client-side scripting language: JavaScript;
Common server-side scripting languages: jsp,asp, PHP
Summaryonly static. html files can be interpreted on the browser, so whether the client sends a static or dynamic page request, the final return to the client is static. html files.
. The difference between HTML and. aspx and the server's handling of both