how electrical energy is generated by hydrogen gas in a fuel cell without burning
The answer to your question is that the hydrogen fuel cell, a catalyst at the anode separates hydrogen molecules into protons and electrons, which takes different paths to cathode. The electrons go through an external circuit, creating a flow of electricity. This is how the electrical energy is generated by hydrogen gas in a fuel cell.
I hope this helps you.