A website should be optimized to be as functional and aesthetically pleasing as possible in order to give the best user experience. To achieve this several principles must be followed.
Purpose. Every webpage should be created with its purpose in mind and aimed toward that purpose.
Websites tend to share these common purposes:
I shall try an example:
Nathan Babnick, PhD in Breaking Stuff
Greetings! I am Nate and I have a reputation of liking planetary nebulae, potatoes, and my brooms broken. I have created this webpage to generate leads and sell all the meteorites I don't like. I offer a 30 second return policy on every one I sell. I would like my dad to tell me if I should delete this example.
Source: https://www.feelingpeaky.com/9-principles-of-good-web-design/