📜  静态网页和动态网页的区别

📅  最后修改于: 2021-09-11 06:12:40             🧑  作者: Mango

静态网页:
静态网页非常简单。它是用 HTML、JavaScript、CSS 等语言编写的。对于静态网页,当服务器收到网页请求时,服务器将响应发送给客户端,而无需做任何额外的处理。这些网页是通过网络浏览器看到的。在静态网页中,页面将保持不变,直到有人手动更改它。

动态网页:
动态网页是用CGI、AJAX、ASP、ASP.NET等语言编写的。在动态网页中,对于不同的访问者,页面的内容是不同的。加载时间比静态网页多。动态网页用于信息经常变化的地方,例如股票价格、天气信息等。

静态网页和动态网页的区别:

SL.NO Static Web Page Dynamic Web Page
1. In static web pages, Pages will remain same until someone changes it manually. In dynamic web pages, Content of pages are different for different visitors.
2. Static Web Pages are simple in terms of complexity. Dynamic web pages are complicated.
3. In static web pages, Information are change rarely. In dynamic web page, Information are change frequently.
4. Static Web Page takes less time for loading than dynamic web page. Dynamic web page takes more time for loading.
5. In Static Web Pages, database is not used. In dynamic web pages, database is used.
6. Static web pages are written in languages such as: HTML, JavaScript, CSS, etc. Dynamic web pages are written in languages such as: CGI, AJAX, ASP, ASP.NET, etc.
7. Static web pages does not contain any application program . Dynamic web pages contains application program for different services.
8. Static web pages require less work and cost in designing them. Dynamic web pages require comparatively more work and cost in designing them.