How to understand the difference between the dynamic and static of the Web page

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

When it comes to Dynamic Web pages, a lot of people think: Web pages that contain movable content, such as animated web pages such as GIF images, dangling text, and so on; The web page with no movable content is a static web page. It is quite clear that this explanation is wrong.

From a technical point of view, it can be summarized as follows:

1 static Web pages: Using HTML (Hypertext Markup Language). The contents of static Web pages are fixed and do not change according to the different needs of the viewer. 2) 2 Dynamic Web pages: Using ASP or PHP or JSP. Dynamic Web pages based on database technology, can greatly reduce the workload of site maintenance.

Note: The above explanation is technically speaking, it is too easy to understand for the technician.

So for non-technical people, they may listen to a step confused, not only do not understand the difference between dynamic and static, but may even more puzzled.

We take the real-life frame of use to describe the dynamic and static differences between the Web page:

Photo frame is composed of photos and frame, frame is just a foil role, is to foil the image of the picture and design; The Web page is composed of the Web page frame and the content of the webpage, the webpage frame is only a foil function, it is to foil the beautiful design of the webpage content.

We divide the picture frame into two types:

1 fixed frame: photo and frame one but fixed together, become a whole.

2 Photo frame: photos and frames are active, you can arbitrarily replace the photo frame, want to see which photo, put it into the frame to appreciate it.

We also divide the page into two types:

1 static Web pages: Web content and Web page framework has been fixed by developers to die together, and as a Web page file in the form of a Web site.

2 Dynamic Web page: page content and the Web page frame is separate, when we want to look at a page content (such as the page you are looking at this article content), the site's script program will dynamically insert the content of the Web page into the frame, and display to the computer in front of you.

Let's imagine the following two scenarios:

1 If you have 100 photos:

With a fixed frame: you need to prepare 100 frames; Well, if you've got 100 frames, if you're tired of the frame style and want to change to a new style frame, you'll have to replace 100 phases.

With the active photo frame: You only need to prepare a picture frame is enough; one day you are tired of frame style, just change a picture frame to get it done.

2 If you have 100 articles in your website:

With static Web pages: You need to create 100 Web files; Well, if you've created 100 Web pages, if you're bored with the layout of the page and want a new layout effect, then you're going to have to change 100 Web page files.

With Dynamic Web pages: You only need to create a Web page file (that is, a Web page frame) on it; (Note: web page content is stored in the database)

Now we should understand what is called Dynamic Web page? What is static Web page? These two questions!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.