Server code describes the behavior of a website. With its help, the server determines what will happen if the user clicks a button or enters text. This code cannot be found on single-page websites. You need server-side code if your website offers an opportunity to create an account, purchase a product or service. Server-side code is written in PHP, Java, Ruby, etc.