Web is the correct choice.
If i pick web, Phonegap can still build my mobile app for ios and android ?
Yes. The iOS and Android options give you the native code for you to integrate. Since you are authoring in web technologies, the web option is correct. I use Firebase all the time with my Ionic/Cordova apps.