A static website is coded entirely with HTML where every webpage is a
separate document without any database or external file to depend. Said
this, the only way to edit such a page is by editing each page
separately. A dynamic website has complex code like PHP or ASP with a
greater degree of functionality such as integrated with the content
management system. This has a database and other source support. In
this, you can update web pages without having knowledge of HTML or
software. It solely depends upon your project type and the purpose.
While fixed websites (that don’t require much data to be drawn from
external sources) are better developed in static, others are good in
dynamic.