Hydrogen has a lot of issues when used as a mass fuel source. Compressed hydrogen for use in vehicles is stored between 5,000-10,000 psi. I would be very uneasy driving around with a tank at this pressure as it would be horrendous to be around if it ever exploded. Ever see a hot water heater explode at 300-350 psi? Imagine that same tank at 10,000 psi! Then there is the issue of tanker trucks running around with 10,000 gallon loads of hydrogen at 10,000 psi. I don't think hydrogen will ever be a practical replacement for current fossil fuels.
Electricity, on the other hand, is easy to transport, generate at millions of locations and from a variety of other power sources etc. It is also an easy energy type to share where millions of power generators can feed the power grid in addition to megawatt power plants. Electricity is also a versatile power source in that it can be used without pollution at the consumption source, is renewable resource friendly and we have over 100 years of technology behind its use.
It is going to be quite a while before fossil fuels are replaced as a main fuel source. Having Mother Nature do all the hard work in the creation of fossil fuels makes them very economical to produce and use. Plus, we have a mind numbing amount of fossil fuels available to us and more reserves are being discovered as technology advances. There is more methane hydrate on the ocean floors than all other forms of fossil fuel combined and we haven't even begun to tap that resource.
To me electric powered lite cars/trucks are the logical successor to gas/diesel powered lite vehicles. It is the only alternative we have that we are set up to use without much additional infrastructure or technological breakthroughs required other than battery advancements.