Home >Web Front-end >Front-end Q&A >The difference between static pages and dynamic pages
The simplest and clearest difference between the two is:
Static pages cannot be changed at any time, static pages are written once It is best to put it on the server for browsing. If you want to change it, you must modify it on the page, and then upload it to the server to overwrite the original page. Only in this way can the information be updated. This is quite troublesome and users cannot modify it at any time.
Dynamic pages can change the content at any time. They are divided into front and backends. Administrators can update the content of the website at any time in the backend, and the content of the frontend page will also be updated accordingly. It is relatively simple and easy to learn.
Static web pages:
In website design, web pages in pure HTML (an application under Standard Universal Markup Language) format are usually called "static web pages". Static web pages are standard HTML files, and their file extensions are .htm and .html. They can contain text, images, sounds, FLASH animations, client scripts, ActiveX controls and JAVA applets, etc. Static web pages are the basis of website construction. Early websites were generally made from static web pages.
Relative to dynamic web pages, static web pages refer to web pages that have no background database, no programs, and are non-interactive. Static web pages are relatively troublesome to update, so they are suitable for display websites that generally have fewer updates. It is easy to misunderstand that static pages are all HTML pages. In fact, static pages are not completely static. They can also have various dynamic effects, such as animation in GIF format, FLASH, rolling subtitles, etc.
Dynamic web pages:
The so-called dynamic web pages refer to a web page programming technology that is opposite to static web pages. For static web pages, as the HTML code is generated, the content and display effect of the page will basically not change-unless you modify the page code. This is not the case with dynamic web pages. Although the page code does not change, the displayed content can change with time, environment or the results of database operations.
The above is the detailed content of The difference between static pages and dynamic pages. For more information, please follow other related articles on the PHP Chinese website!