When you open a website in your browser, you see a single page ﬁlled with text ,graphics, photos, video, and so on , like the page in a magazine or newspaper is a single entity made up of text and images. But what you see in a browser window is created from a series of instructions: the HTML code. So ultimately the HTML is the single entity behind what you see onscreen; the equivalent of the printed page.
However, there’s an important difference between an HTML page and a printed page. The HTML that’s fed to your browser may be a single entity when it arrives at the browser, but it may or may not be a single entity sitting on the server waiting for browsers to retrieve it, like a magazine on a newsstand waiting to be purchased. The HTML may be made up of chunks of code that get assembled into a whole in that split second when the browser pulls it off the shelf.
That’s the difference between dynamic and static web pages. Static pages are complete sets of HTML waiting to be retrieved, whereas dynamic pages are chunks of HTML that are assembled at the moment of retrieval into a single entity that’s displayed in your browser
The benefits of dynamic websites
- Easier design updates
- More flexible data
- Easier content updates