What is Static Website? What is a Dynamic Website?
- What is the static site? Explain in your own words.
Ans: Static sites contain web pages with fixed content coded in HTML and stored on a web server. It does not change, it stays the same, or "static" for every viewer of the site.
These are such kinds of websites that don't change with user interaction and contents are not fetched from the server; any changes made in the site are directly done through changes in codes as there is no dedicated server side. Any novice(beginner/rookie) ) cannot update the content. One of the biggest disadvantages is that it requires the expertise of a web developer to update, add or change any content on a static website.
Static content is any content that can be provided to an end user without having to generate, modify or process it. The server delivers the same file to each user, making static content one of the simplest and most efficient types of content to stream over the Internet.
For example- blogging sites, Portfolio websites, resume websites, etc
- What is a dynamic site? Explain in your own words.
Ans: Dynamic sites are such kind of websites that uses a server and database to fetch their content and has the ability to provide dynamic and interactive functionality to the user.
Dynamic websites contain web pages generated in real-time. The content of these web pages includes web scripting code, such as PHP. When a dynamic page is accessed, the code within the page is accessed on the web server and the resulting HTML is sent to the client's web browser.
Generally, large websites are dynamic in nature as they are easier to maintain than static websites. This is because each of the static pages contains unique content, which means that they must be opened, edited, and published manually every time a change is made. Sometimes, dynamic websites are called database-driven websites because most of these websites fetch data from the server and show it to the client or user's website.
For example- train, flight, hotel booking websites, video streaming websites, photo editing websites, e-commerce websites, Facebook, Google, etc
Subscribe to my newsletter
Read articles from Manas Barman directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Manas Barman
Manas Barman
I am a Electrical Graduate. Also,I am a Full stack Web Developer.