To know .html and .aspx, you must first understand the difference between static web pages and dynamic web pages.
Static web page: There is no background database, and it does not include web pages that cannot be interacted with by the program. It is mainly used to set the style of the web page and display the content.
Dynamic web pages: As opposed to static web pages, they can interact with background data, and they need to be processed by the server and then returned to the client browser for display.
As far as html and aspx are concerned, it can be understood this way: static web pages written purely in html language have an extension of .html, while dynamic pages are dynamic instructions embedded in static html (these dynamic instructions can be Server-side scripting languages such as asp and php) have an extension of .aspx
So what is the difference between how the server handles the two?
Note:
The browser can parse: html, css, js
Common client-side scripting languages: javascript;
Common server-side scripting languages: jsp, asp , php
Only static .html files can be interpreted on the browser, so whether the client sends a static or dynamic page request, it will eventually be returned to the client They are all static .html files.