Take a look over this presentation. It’ll give you the basics of CV writing. And a lot of concepts here will be the same for any kind of online portfolio you create.
If you are creating an online portfolio, please always think about your own privacy. For example, publishing your phone number to the world might not be the best thing.