Britain has gone a full day without using coal to generate electricity for the first time since the 1880s, National Grid says.

The energy provider said Friday's lack of coal usage was a "watershed" moment.

Britain's previous longest continuous energy period without coal until now was 19 hours - first achieved last May, and again on Thursday.

The government plans to phase out Britain's last plants by 2025 in order to cut carbon emissions.

Friday is thought to be the first time the nation has not used coal to generate electricity since the world's first centralised public coal-fired generator opened in 1882, at Holborn Viaduct in London.

Cordi O'Hara, of the National Grid, described Friday as "a watershed moment in how our energy system is changing".

She added: "The UK benefits from highly diverse and flexible sources of electricity. Our energy mix continues to change and National Grid adapts system operation to embrace these changes."

But Ms O'Hara says that while the country makes the transition to a low carbon system, coal remains an important source of energy.

According to Gridwatch.co.uk, around half of British energy on Friday came from natural gas, with about a quarter coming from nuclear plants.

Wind, biomass, and imported energy were also used.

Analysis

Image copyright PA Image caption These British miners are seen drilling for coal in 1924

By John Moylan, BBC industry correspondent

Coal has powered Britain for more than a century.

But Friday's landmark moment - the first 24-hour period without any coal-powered generation - is a sign of how the once mighty fuel is being consigned to history.

Part of the reason is that solar panels and wind turbines now provide much more electricity to factories and homes. Lower power demand is a factor too - that's normal on a Friday.

And as older, uneconomic coal fired plants have closed in recent years, the fossil fuel has been playing a much smaller role in our energy system.

The last deep coal mine in the UK, Kellingley Colliery in North Yorkshire, closed in December 2015, bringing to an end centuries of deep coal mining in Britain.

Hannah Martin, from Greenpeace UK, said: "A decade ago, a day without coal would have been unimaginable, and in 10 years' time our energy system will have radically transformed again."

Coal remained a dominant part of the energy supply until the 1990s, but its use has fallen in recent years, as plants closed or switched to burning biomass such as wood pellets.

It accounted for just 9% of electricity generation in 2016 - down from 23% the year before.

However, there have been claims that using wood pellets to generate electricity is actually speeding up, not slowing down, climate warming.

A study published by Chatham House in February said wood is not carbon neutral and emissions from pellets are higher than coal, making pellet use a flawed policy.

The energy industry rejected the report, saying that wood energy cuts carbon significantly compared with fossil fuels.

Key moments for coal-fired power

Image copyright Getty Images Image caption The Ferrybridge coal-fired power station in West Yorkshire closed in 2016 after 50 years

1882 - The world's first public coal-fired generating plant is opened at Holborn Viaduct in London

- The world's first public coal-fired generating plant is opened at Holborn Viaduct in London 1956 - The Clean Air Act is introduced to reduce air pollution. It includes powers to establish smokeless zones, and provides subsidies to householders to switch to smokeless fuels to heat their homes. Coal-burning power stations are moved out of cities.

- The Clean Air Act is introduced to reduce air pollution. It includes powers to establish smokeless zones, and provides subsidies to householders to switch to smokeless fuels to heat their homes. Coal-burning power stations are moved out of cities. 1970s - Coal for heating homes is increasingly replaced by natural gas from the North Sea

- Coal for heating homes is increasingly replaced by natural gas from the North Sea 1980s - Nuclear power grows to around 25% of electricity generation

- Nuclear power grows to around 25% of electricity generation 1990s - 'Dash for gas' as natural gas grows to around 30% of electricity generation, largely substituting for coal

- 'Dash for gas' as natural gas grows to around 30% of electricity generation, largely substituting for coal 2015 - Renewables account for 25% of power supply

- Renewables account for 25% of power supply 2016 - Government says it wants Britain's last coal power plants to close by 2025

Sign-up to get news from the BBC in your inbox, each weekday morning