What is the 'correct' way of coding single page websites?

Can anyone please tell me the ‘correct’ way of coding single page websites.