Static and Dynamic Websites: There's a Difference
Static web pages are made of “fixed code” and unless the site developer makes changes, nothing will change on the page. Think of it like a brochure for a business. The brochure can’t just change itself – to change it someone has to create a new one. That’s why static websites are sometimes referred to as brochure sites, since they give you a lot of the same information that you could get from a brochure.
So, if you need to make a site that needs to just get information out there and not be updated regularly, creating a static site would be much simpler and probably effective for you.
There’s a simple way to determine if a site is dynamic. If you can interact with it, it’s a dynamic site. So, most of the sites you probably visit are dynamic sites, be it Reddit, Twitter, Facebook or even Digital-Tutors. The way that you can interact with the site, and just clicking a link within the site doesn’t count, is more like commenting on a post, creating a user profile or making a reservation.
Examples of dynamic sites are blogs, e-commerce sites, calendar or to-do sites, or any site that needs to updated often.
Dynamic sites use languages like PHP to interact with information stored in a databases. For this reason, dynamic sites are much more complicated and expensive to create. Not only is web hosting required, but databases or servers must be created as well. The languages used to create dynamic sites are also much more complicated than the client-side languages.
Most dynamic sites utilize a Content Management System to, you guessed it, manage their content. Often, developers will create a custom CMS for their clients (using PHP and MySQL), but that’s not necessary. There are tons of free systems available for your use, like WordPress, Drupal and Joomla.
You might hear that PHP and ASP.NET are used to generate HTML dynamically. That really just means that those programming languages can, with direction, change and write HTML without a person having to actually go into the code and change it.
Another term often associated with dynamic sites is CRUD, which stands for Create, Read, Update and Delete. All four of those things happen when you’re working with a dynamic site because they refer to functionality of a database. Think about a blog. In any blogging platform, that’s successful anyway, you have to have the ability to create content, then be able to read or view that content on the page. You should be able to update or edit your posts and then have the option to delete them as well. All that work happens in the database. Content management systems make this process possible.
As you begin your web design journey, you may find yourself creating a lot of static sites first, and that’s ok! It’s better to completely understand the client-side before you jump in to the server-side, anyway.