Static pages v. Dynamic pages
- Static web page
- Pre-built on disk. Just displayed in browser.
- e.g. file.html
- Can browse using file://
- Can incorporate some dynamic elements (SSI, JS)
- Dynamic web page
- Not pre-built. Does not correspond to anything pre-existing on disk.
- Cannot browse using file://
- e.g. file.php
- Generated by a program at run-time.
Page is the output of the program.
Though parts of the page can be pre-built.
- Program can be on server-side or client-side or both.
- Server-side program often includes content from server-side database.
Site data is stored in database - not in HTML files like file.html.
- e.g. PHP database-driven website
- e.g. Wordpress
- e.g. Search engine results