Question: Would the tax apply to electicity generated by fossil fuels?

Yes. Coal-generated electricity is a major contributor to Global Warming, and coal mining isn't exactly environmentally benign.

Don't forget Natural Gas generated electricty.

Rick