Static web pages and dynamic web pages are mainly distinguished according to the language in which the web pages are produced:
Language used for static web pages: HTML (Hypertext Markup Language)
Dynamic web pages use languages: HTML+ASP or HTML+PHP or HTML+JSP, etc.
The difference between static web pages and dynamic web pages
Whether the program is running on the server side is an important sign. Programs, web pages, and components running on the server are dynamic web pages. They will return different web pages with different clients and at different times, such as ASP, PHP, JSP, ASP.net, CGI, etc. Programs, web pages, plug-ins, and components running on the client are static web pages, such as HTML pages, Flash, JavaScript, VBScript, etc., and they will never change.
Static web pages and dynamic web pages have their own characteristics. Whether a website uses dynamic web pages or static web pages mainly depends on the functional requirements of the website and the amount of website content. If the website function is relatively simple and the amount of content updates is not large, it will be more efficient to use purely static web pages. Simple, on the other hand, dynamic web page technology is generally used to achieve it.
Static web pages are the basis of website construction, and there is no contradiction between static web pages and dynamic web pages. In order for the website to adapt to the needs of search engine retrieval, even if dynamic website technology is used, web content can be converted into static web pages for publication.
Dynamic websites can also adopt the principle of combining static and dynamic ones. Where dynamic web pages are suitable, use dynamic web pages. If it is necessary to use static web pages, you can consider using static web pages to achieve it. On the same website, dynamic web page content and static web pages It is also common for content to exist simultaneously.
We briefly summarize the general characteristics of dynamic web pages as follows:
(1) Dynamic web pages are based on database technology, which can greatly reduce the workload of website maintenance;
(2) Websites using dynamic web technology can implement more functions, such as user registration, user login, online survey, user management, order management, etc.;
(3) Dynamic web pages are not actually web page files that exist independently on the server. The server only returns a complete web page when the user requests it;
(4) The "?" in dynamic web pages poses certain problems to search engine retrieval. It is generally impossible for search engines to access all web pages from the database of a website, or due to technical considerations, search spiders do not crawl the URLs. The content after "?", therefore, websites using dynamic web pages need to do certain technical processing when conducting search engine promotion to adapt to the requirements of search engines.
What is a static web page? What are the characteristics of static web pages?
In website design, web pages in pure HTML format are often called "static web pages", and early websites were generally made from static web pages.
The URL form of a static web page is usually:
That is, with .htm, .html, .shtml, .xml, etc. as the suffix. Various dynamic effects can also appear on web pages in HTML format, such as animations in GIF format, FLASH, scrolling letters, etc. These "dynamic effects" are only visual and are different concepts from the dynamic web pages that will be introduced below. .
We briefly summarize the characteristics of static web pages as follows:
(1) Each static web page has a fixed URL, and the web page URL is suffixed in common forms such as .htm, .html, .shtml, etc., without "?";
(2) Once the web page content is published to the website server, regardless of whether there is a user access, the content of each static web page is stored on the website server. In other words, the static web page is a file actually stored on the server. Each web page is an independent file;
(3) The content of static web pages is relatively stable, so it is easy to be retrieved by search engines;
(4) Static web pages are not supported by a database and require a large workload in website production and maintenance. Therefore, it is difficult to rely entirely on static web page production when the website has a large amount of information;
(5) The interaction of static web pages has greater limitations in terms of functionality.
I seem to understand. First, look at the suffix name, and secondly, whether it can interact with the server.
Compared with dynamic web pages, static web pages refer to web pages that do not have a back-end database, do not contain programs, and are not interactive. Whatever you make up is what it shows, and there won't be any changes. Static web pages are relatively troublesome to update, so they are suitable for display websites that generally have fewer updates.
The difference between static web pages and dynamic web pages
Whether the program is running on the server side is an important sign. Programs, web pages, and components running on the server are dynamic web pages. They will return different web pages with different clients and at different times, such as ASP, PHP, JSP, ASP.net, CGI, etc. Programs, web pages, plug-ins, and components running on the client are static web pages, such as HTML pages, Flash, JavaScript, VBScript, etc., and they will never change.
Static web pages and dynamic web pages have their own characteristics. Whether a website uses dynamic web pages or static web pages mainly depends on the functional requirements of the website and the amount of website content. If the website function is relatively simple and the amount of content updates is not large, it will be more efficient to use purely static web pages. Simple, on the other hand, dynamic web page technology is generally used to achieve it.
Static web pages are the basis of website construction, and there is no contradiction between static web pages and dynamic web pages. In order for the website to adapt to the needs of search engine retrieval, even if dynamic website technology is used, web content can be converted into static web pages for publication.
Dynamic websites can also adopt the principle of combining static and dynamic ones. Where dynamic web pages are suitable, use dynamic web pages. If it is necessary to use static web pages, you can consider using static web pages to achieve it. On the same website, dynamic web page content and static web pages It is also common for content to exist simultaneously.
We briefly summarize the general characteristics of dynamic web pages as follows:
(1) Dynamic web pages are based on database technology, which can greatly reduce the workload of website maintenance;
(2) Websites using dynamic web technology can implement more functions, such as user registration, user login, online survey, user management, order management, etc.;
(3) Dynamic web pages are not actually web page files that exist independently on the server. The server only returns a complete web page when the user requests it;
(4) The "?" in dynamic web pages poses certain problems to search engine retrieval. It is generally impossible for search engines to access all web pages from the database of a website, or due to technical considerations, search spiders do not crawl the URLs. The content after "?", therefore, websites using dynamic web pages need to do certain technical processing when conducting search engine promotion to adapt to the requirements of search engines.
In addition, if the extension is .asp but it is not connected to the database and is a completely static page, it is also a static website. It is just a .asp extension.