Small knowledge, big challenge! This article is participating in the creation activity of “Essential Tips for Programmers”.

preface

Today, the school opened a new course — JavaWeb development, after listening to a little bit, I felt connected with the previous content. The first class talked about something casually, which involved the concept of static web page and dynamic web page. Although I could probably understand the difference between the two through a simple description, I would like to know more about it.

define

I understand it

My understanding is that static web pages are “dead” off, it is like a specimen, as long as you do not take the initiative to change it, it has not changed, put a hundred years is the same. And dynamic web page is the same as “live” life, give certain rules and data, it can change, update content ah pictures ah what.

Feel so understanding rise is a bit of a problem……

A formal definition

On Baidu Baike, the definition of static web pages is:

In web design, a web page in pure HTML (an application of standard Common Markup Language) format is often referred to as a “static page”. A static page is a standard HTML file with file extensions of.htm,.html, It can contain text, images, sounds, FLASH animations, client scripts, ActiveX controls, and JAVA applets.

Comparison of dynamic web pages

Static web pages are relative to dynamic web pages, refers to no background database, no procedures and not interactive web pages. Static web pages relatively updated up more trouble, suitable for the general update less display site. Easy to misunderstand is that static pages are HTM such pages, in fact, static is not completely static, he can also appear a variety of dynamic effects, such as GIF format animation, FLASH, rolling subtitles and so on.

We can summarize some characteristics of static web pages from the definition:

  1. The concept of static web pages exists as opposed to dynamic web pages
  2. Static web pages have no background database, no programs, and no interaction
  3. Static web pages can have animation, video and other dynamic elements and dynamic effects

The third point of the list is similar when I look at dynamic web pages:

It’s important not to confuse dynamic web pages with dynamic content. The dynamic web page here is not directly related to the dynamic visual effects of various animations and scrolling subtitles on the web page. The dynamic web page can also be pure text content, or it can contain various animated content. These are only the manifestation of the specific content of the web page, regardless of whether the web page has dynamic effects. As long as the use of dynamic web technology to generate web pages can be called dynamic web pages.

The advantages and disadvantages

Because baidu baike wrote very detailed, I write a little summary about their understanding.

Static Web pages:

Pros: Safer, faster site (compare these to dynamic)
Cons: Fixed content, poor interactivity, insufficient support for user/customer needs (which are understandable by definition…)

Dynamic Web page:

Advantages: Addresses the disadvantages of static web pages (not given, I think so…)
Disadvantages: No advantage in access speed (I think this is because dynamic web pages need to connect to some databases, background, etc., and the speed will be slower than static)