Static websites consist of a fixed number of pre-designed web pages containing hardcoded, fixed content and structure. These kinds of websites are not linked with any kind of database and are used only for a limited web presence. As a result, users see the same content regardless of who they are, where they’re from, and which browser they’re using. In simple language Sites that don’t change much or can display the same pages to each user such as company websites belong to this category.
Dynamic websites on the other hand generate pages in real-time. The flexibility of the content and structure makes it possible to customize what a user experiences based on their request or the browser they use. These require regular updating of data to generate real-time HTML pages constructed to fulfill individual user requests. These contain interactive, continually changing elements based on the actions taken by a user. They provide more website functionality and enable user interaction and let you request and store information in an organized way. These include Sites where users can log in and access their unique profile, such as ecommerce and social media sites, which may be dynamic.