There are essentially two types of websites: static sites and dynamic sites. However this can be confusing because there can be static elements of a dynamic site, dynamic elements of a static site… as we continue into the age of Progressive Web Apps and website personalization, the lines become blurred between what’s static and dynamic.
there are some points that you should know…
Prebuilt content is the same every time the page is loaded.
It uses HTML code for developing a website.
It sends exactly the same response for every request.
The content is only changed when someone publishes and updates the file (sends it to the webserver).
Flexibility is the main advantage of a static website.
Content is generated quickly and changes regularly.
It uses server-side languages such as PHP, SERVLET, JSP, and ASP.NET etc. for developing a website.
It may generate different HTML for each of the requests.
The page contains “server-side” code which allows the server to generate unique content when the page is loaded.
Content Management System (CMS) is the main advantage of a dynamic website.
Is Google a static or dynamic website?
Google and other powerful search engines prefer static websites, seeing as they load very fast. What’s more, Google is constantly motivating site owners to incorporate Accelerated Mobile Pages (AMP), and that particular open-source effort is generally static in nature (equivalent to the dynamic pages on the desktop).