The three main parties have all pledged to cut carbon emissions to net-zero, albeit at different timescales.