Compared to static websites, which are purely informational, a dynamic website is more functional. It allows users to interact with the information that is listed on the page. Of course, that requires utilizing more than just HTML code.
Why would you choose a dynamic page over a static page?
The following are some of the many reasons why a company may need to have a dynamic page over a static page.
Need to access a database or external file
A page that needs to access a database or external file to get information needs to be dynamic. For example, when you visit Google and perform a search, Google sends your search query to hundreds of computers and combines all information from those computers into a search result page.
Information is updated frequently
Websites that have information that’s updated frequently are dynamic to make it easier and faster to get information online. For example, a news site may have many different reporters who can submit stories. With scripts, the company can automatically update the home page to contain those stories without relying on someone to edit a static HTML page each time a new story and page is added.
Dynamic sites make it easier for everyone to contribute
WordPress sites and other CMS solutions make it easier for anyone to have a website without knowing a lot about HTML or programming. Once created, the user(s) can create pages using an online editor and post them online using the CMS. In contrast, a static website would require that the user create the page in an HTML editor and upload it using FTP.