Home  >  Article  >  Web Front-end  >  Is html a static page?

Is html a static page?

WBOY
WBOYOriginal
2022-09-06 16:25:234373browse

html is a static page; html represents structure, css represents style. Pages made by HTML and CSS are called static pages. Dynamic pages refer to dynamic data pages, not simulated data pages. Among html web pages The data is all static data. After the front-end page is integrated with the back-end, when the data in the web page comes from the database, it is called a dynamic page.

Is html a static page?

The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.

Is html a static page?

HTML is called a static page

HTML represents the structure, CSS represents the style, and the page made by HTML and CSS is called "Pure static page"

The so-called dynamic page refers to a page with dynamic data, not a page with simulated data. The three technologies of HTML, CSS and JS are the work content of "HTML5 development engineer/WEB front-end development engineer". The data in the web page are all static data (written and simulated by engineers). The current-end page and the back-end (PHP, JAVA) ) After integration, when the data in the web page comes from the database, it is called a "dynamic page".

Static page

Simply put, the so-called static page refers to an unchanging page, that is, the designer has set everything on the page and made it to death. , and then put it up. No matter who sees the page content at any time, it will be the same and unchanged (unless the page content is manually modified).

Simply put, the so-called non-static page refers to the page where the client page and the server side have data interaction. The content of the dynamic page is generally generated by server-side programs. Different people visit it at different times. Pages and content displayed may vary. After the web designer writes the server-side page program, there is no need for manual control. The page content will automatically change according to the arrangement of the page program. Ajax request is also a kind of data interaction.

If the page has animation effects and various animation effects controlled by js, but there is no request to dynamically request data from the server, then this kind of page is considered a static page. It doesn’t mean that the page has animation effects, it is a dynamic page.

Dynamic page

Dynamic page refers to a web programming technology that is opposite to static web pages. Because static pages basically will not change after they are written, but this is not the case for 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 content is A dynamic effect.

Dynamic pages generally refer to JSP. The client uses a browser to connect to the server through the network and sends a request using the HTTP protocol. The request will be forwarded to the container first, and the servlet in the container will be called. At the same time, the container will connect to the database. The required data is taken out from the database and handed over to the servlet. Several servlets complete the response and hand the response to the server. The server then sends the content to the client browser for parsing and execution. Therefore, the client gets a dynamically assembled data after a series of operations. Show content.

Summary of the difference between the two

1. First of all, dynamic pages do not refer to pages with animations or special effects, but the content of the page. It will change as needed, there is a dynamic change. Static pages refer to pages whose content is basically hard-coded and will not change easily.

2. The static page is from the client to the server. The server fetches the content from the disk and returns it to the server. Dynamic pages require the server to mobilize a series of servlets in the container and the content in the connected database, dynamically generate the content to be returned, and then transmit it back to the server and then to the client.

(Learning video sharing: css video tutorial, html video tutorial)

The above is the detailed content of Is html 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