I am learning web development and I'm stuck with the difference between static and dynamic websites.
From what I gather, dynamic websites are generated realtime from the server side, which would mean that all the html, css and javascript are generated through the server side code.
This would mean that dynamic websites don't need a front-end.
But I have a guess. You can create a front-end with all the javascript, html, and css, which would act as your base; after that, you can dynamically generate any changes made by a user for example and then send it and insert it into your front-end.
Is the former correct or is my guess the one that's right? Or am I understanding this completely wrong?