Glasgow universities have been ranked among the best in the UK in an annual league table.

The Universities of Glasgow and Strathclyde have been named in the top 50 across the country.

The city's iconic University of Glasgow ranked 24th in the Complete University Guide 2019, up three places from last year, while the University of Strathclyde came in 40th.

Elsewhere in Scotland, Edinburgh took 23rd place and Aberdeen came in at 28th, having risen 12 places in the past year.

Read more: 23 reasons why Glasgow University is the best looking uni in the world

Top marks went to the University of St Andrews which has been ranked best in Scotland and fifth best in the UK.

Dundee comes in 31st place while Strathclyde and Stirling are ranked 40th.

The Complete University Guide 2019 rankings are based on 10 measures, including student satisfaction, research, entry standards, the proportion of good honours degrees awarded, graduate prospects and completion rates.

Read more: 23 reasons why Glasgow University is the best looking uni in the world

For the third year running, TheCompleteUniversityGuide.co.uk has published a ranking of specialist arts, drama and music institutions, with 13 colleges and conservatoires.

The Royal Conservatoire of Scotland has moved up five places to second place.

In separate listings covering 70 subjects, only five universities come top in more than two subjects.

The University of Strathclyde leads in seven, the University of Glasgow in five and St Andrews in three.

St Andrews said it had ranked top in Scotland since the guide was first published 11 years ago and welcomed the latest table.

Read more: 11 reasons to study at Glasgow Caledonian University

The university's Principal Professor Sally Mapstone said: "It's an honour to be top in Scotland after another very strong performance from the sector north of the border.

"St Andrews' values are those of a small, Scottish, and highly international university. We are outward looking, inclusive and focused on excellence.

"We see teaching quality and research excellence as commensurate, and we provide them in an environment that is beautiful, friendly and enriching.

"This is an encouraging result for St Andrews, and for Scottish higher education which continues to show its strengths."

Read more: 11 reasons to study at Glasgow Caledonian University

The authors of the table also note that throughout all parts of the UK the number of students graduating with either a first-class or upper second-class honours degree has increased year-on-year since it was first created.

Dr Bernard Kingston, chairman of TheCompleteUniversityGuide.co.uk, said: "The proportion of good honours has steadily but inexorably increased at almost all universities.

"Either students are working harder, or they are being better taught, or something else is happening. But it is one of the criteria over which universities have a significant degree of control."

Read more: 11 reasons to study at Glasgow Caledonian University