Education rights campaigner Malala Yousafzai has attended her first lecture at the University of Oxford.

The 20-year-old Nobel Peace Prize winner tweeted a photo of three philosophy books on Monday.

She wrote: "5 years ago, I was shot in an attempt to stop me from speaking out for girls' education. Today, I attend my first lectures at Oxford."

Thousands of well-wishers responded with messages of congratulations and the post was liked more than 150,000 times within hours.

Her brother, Khushal Yousafzai, tweeted in reply: "Sorry for being a headache for the last 5years. So grateful you are still with us. Ik (I know) you miss me but i am coming to oxford in 2years."

Ms Yousafzai is following in the footsteps of many world leaders in studying Philosophy, Politics and Economics, or PPE.

She did not reveal her grades but earlier this year she told a conference she had received an offer, which was conditional on achieving three As at A-level.

Ms Yousafzai narrowly avoided death in 2012 after being shot in the head by the Pakistani Taliban for her outspoken campaigning over girls' rights to an education.

Her career as an activist began in early 2009, when she started writing a blog for the BBC about her life under Taliban occupation and promoting education for girls in Pakistan's Swat Valley.

But her campaign angered local militants and she was shot during an assassination attempt while taking the bus to school.

She was treated at Birmingham's Queen Elizabeth Hospital and, fearing reprisals in her native country, made the city her home.

In 2014 she became the youngest person to be awarded the Nobel Peace Prize and her campaign for children's rights to education across the world has seen her addressing the United Nations on the issue.