Dynamic websites use more complex code than static websites. The layout and the page content are created separately. The content is stored in a database. Words, numbers, and images are stored as unique elements in the database and put together to be displayed on a page only if asked. This allows you to provide individual information to the user and let them personalize the content according to their preferences.
Users will be able so search through your site inventory, create a user account, or pay by credit card.
A dynamic website can also be controlled by a web application such as a Web Content Management System (CMS). The content management system modifies the stored information directly in the database. You will be able to make updates without needing any knowledge of HTML, or any website software.
Dynamic websites are usually difficult to develop. This tutorial is not about dynamic websites due to the fact that every Content Management System would need its own tutorial. Nonetheless I will explain to you briefly how dynamic websites work.
Go with a dynamic website when:
- You want to sell products or services online.
- You want to interact with your users and offer them some online-services such as user-accounts, user rating and communities.
- You want to provide different content to different users.
- You want to let users personalize the content or the layout.
- You want to give access to more people who can edit the website with different permissions.
- Efficient website management with a Content Management System.
- Easy update content without HTML knowledge.
- The layout can be changed independently of the content.
- Content can be personalized by the users or be presented in different ways.
- The community develops new features (if open source).
- Complex websites with lots of pages can be handled.
- Provides services such as online-shops, paying by credit card and so forth.
- More people can edit the website.
- Dynamic content is less visible for search engines.
- Setting-up the Content Management System is time-consuming.
- Slower than static websites.
- Expensive to develop and to host.