A website consists of a series of HTML files, each representing a page of a website.
On static websites, each page is a separate HTML file. Even if two pages have a chunk of identical contents (like a footer), they contain two variations. Thus, if you wish to upgrade the footer, then you have to do twice. This is quite straightforward and following this only all sites were built during the initial years of the World Wide Web.
A dynamic website uses server technologies (such as PHP) to dynamically build a page immediately when an individual visits the webpage. What happens is that the user goes to a web address along with the server finds a whole lot of distinct pieces of information it writes into a single cohesive page, which is what you view. Dynamic pages are the web pages that can be loaded without making any changes. They can be changed dynamically. Dynamic web pages may also alter their information based on what users do. The web page linked to the database change accordingly and automatically without human intervention, in case the information stored in the database varies. Dynamic sites are great for picture galleries, online calendars or e-commerce, etc.
The dynamic websites usually cost more to develop, since they need a management utility and more complex coding has to be carried out to help manage your website details. But in the very long term, dynamic Websites are cost effective and easy to keep. Clients do a mix, acquiring some areas such as a product catalog where they must modify information or pictures and render other pages such as contact information as static pages.