I am confused.

-So I make all the static part of the site with HTML and style it with CSS.
-Then, the dynamic part of the website is made using javascript.
-And finally the server-side development is done with Java (or PHP or other language).

Is it like this? Or how does the website development model work?