I'm buying a used iphone 5s for my daughter from a friend.How do you create Apple id?

Do you have to sync the phone to Itunes and do it? Or create it thru Apple site?

Go here: https://appleid.apple.com/...apple.com/ and click on "Create your Apple ID"
You can also do it directly on the phone.

It doesn't really matter how you create it.

Just reset the phone and it'll do it for you.