To understand Visualforce Architecture:
- Imagine that there is a Dev User who writes the code and saves it. Then the code goes to the Application server. And if the code is compiled successfully without any errors then it gets saved to the database.
- When the Dev User opens the web page, then the HTML code(Visualforce code gets converted into HTML in the Application server) is returned to the browser of the Dev User and the content is displayed.