Home  >  Article  >  Web Front-end  >  What is a static page?

What is a static page?

青灯夜游
青灯夜游Original
2019-05-23 10:04:3830324browse

Static pages, that is, static web pages, actually exist in pure HTML format. The codes are all in the page. They do not need to be compiled by the server and are directly loaded into the web page displayed on the client's browser. Static pages cannot independently manage and publish updated pages. If you want to update web page content, you must download the file through FTP software and modify it with web page production software.

What is a static page?

A static page is a webpage where the code of the webpage is all in the page, and there is no need to execute asp, php, jsp, .net and other programs to generate client webpage code. Static pages cannot independently manage and publish updated pages. If you want to update web page content, you must download the file through FTP software and modify it with web page production software (except through fso and other technologies)

Common static page examples: .html extension, .htm extension.

Note: A static page does not mean a static page if there is no animation on the website.

In addition to static content such as text and images, static pages can also have various dynamic effects, such as animations in GIF format, FLASH, rolling subtitles, etc., but these "dynamic effects" are only visual. of.

Static web pages are the basis of website construction. Early websites were generally made from static web pages. 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. 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.

Features

● Each static web page has a fixed URL, and the web page URL is suffixed in common forms such as .htm, .html, .shtml, etc. does not contain "?"; ("?" in dynamic web pages has certain problems for 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 cannot Go to grab the content after "?" in the URL.)

● 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 saved on the website server. In other words, static web pages are files actually stored on the server, and each web page is an independent file;

● The content of static web pages is relatively stable, so it is easy to be retrieved by search engines;

● Static web pages do not have the support of a database, and the workload in website production and maintenance is relatively large. Therefore, when the website has a large amount of information, it is difficult to rely solely on static web page production methods;

● Static web pages The interactivity is poor and there are greater limitations in functionality.

● The page browsing speed is fast, the process does not need to connect to the database, and the opening speed of the page is faster than the dynamic page.

● The burden on the server is reduced, the workload is reduced, and the cost of the database is reduced.

Advantages

● Can be made public (that is, the copy can be certified to anyone).

● There are no special requirements for hosting. (No special middleware required such as hypertext preprocessor, public gateway interface)

● No network server or application server required, such as directly from CD-ROM (Compact Disc-Read Only Memory) or USB flash drive The drive reads content and can be accessed directly via a web browser.

● The website is more secure, and HTML pages will not be affected by Asp-related vulnerabilities; it can also reduce attacks and prevent SQL injection. When a database error occurs, normal access to the website will not be affected.

● No compilation is required, so it is fast and saves server resources.

● The URL format is friendly and easy for search engines to identify.

Disadvantages

● Content is fixed, interactivity is poor, and content update and maintenance are complicated.

● Without automated tools, it is unrealistic to maintain a large number of static page files.

● Unable to fully support user/customer needs (appearance choices, browser support, cookies).

The above is the detailed content of What is a static page?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn