Thanks in advance.
you are asking about CMS....
1. you need to store all websites contents in database
2. Use HTML Editors to create HTML contents in your website
3. Split your web pages into piceces, and maintain all of its content in database