Thanks for the very quick reply. However, my concern is not so much for my email account, since changing that would still leave the hacker with all of my contacts email addresses etc and, if he really has been able to access my ipad camera and record videos or photos from it and/or copied some from my ipad, he would still be able to send them to all those contacts. That would also apply to my fb and messenger contacts.
I saw a post from about a year ago that said a security flaw in the Safari browser allowed hackers to access the camera by posing as a website that had permission to access it, such as zoom. I’m sure that my ipad wasn’t hacked until earlier this year though (if at all) so, although that old flaw was fixed and my ipad always has the latest updates, has there been another flaw recently that would allow a hacker access to an ipad or its camera, even if it was only a short time before that flaw was fixed.
The one password that the hacker definitely knows was only used on two websites, so he could presumably have got it from one of them, but is it also possible that he got it from a keylogger on my ipad when I logged in to one of those websites? Is it possible to install a keylogger on an ipad? I thought that the way Apple controlled the software for ipads etc, meant that only software approved by them could be installed even if a hacker gained access to the ipad.