Static Website vs Dynamic Website
A static site sends the same ready-made files to everyone. A dynamic site builds each page when it is asked for, so it can show data for each person.
Static Website
A site made of files built ahead of time. All visitors get the same page.
A static website is made of ready-made files that the server sends as they are. Every visitor gets the same page, because nothing is built when they ask. That makes static sites very fast, cheap to host and hard to break into. They suit blogs, docs and company pages. A tool called a static site generator can build the files from simpler sources.
Dynamic Website
A site that builds each page when asked. It can be made just for you.
A dynamic website builds each page when someone asks for it. The server runs code, reads a database and puts together a page for that visitor. That is how you see your own name, your own cart and today's prices. It is slower and costs more to run than a static site. Most sites with logins are dynamic.
In one line
- Static Website
- A site made of files built ahead of time. All visitors get the same page.
- Dynamic Website
- A site that builds each page when asked. It can be made just for you.