Media playback is unsupported on your device Media caption Malala Yousafzai: "I am here to speak up for the right of education of every child"

Malala Yousafzai, the Pakistani girl shot by the Taliban, has told the UN that books and pens scare extremists, as she urged education for all.

Speaking on her 16th birthday, Malala said efforts to silence her had failed.

She was shot in the head on a school bus by Taliban gunmen because of her campaign for girls' rights.

The speech at the UN headquarters in New York was her first public address since last October's incident in Pakistan's north-western Swat valley.

Malala has been credited with bringing the issue of women's education to global attention. A quarter of young women around the world have not completed primary school.

'Afraid of women'

After the shooting, Malala was flown from Pakistan to the UK for treatment, and now lives in Birmingham, England.

At the scene There were huge cheers when Malala Yousefzai took to the podium. A few months ago, such a moment might have seemed unimaginable. Her speech, to more than 500 young people aged 12-25 from around the world, was delivered with grace and compassion. Malala may be the focus and inspiration behind today's events, but she hopes her message will highlight the challenges millions of her contemporaries face. Many here say she's their inspiration. There is a buzz of excitement at the UN. Corridors and chambers normally filled with sharp-suited diplomats have, for one day at least, been taken over by teenagers. It's Malala's story and incredible recovery from her attack that have brought the issue of universal education to greater global attention. The challenge is to keep up the momentum to make a real change.

Amid several standing ovations, Malala told the UN on Friday that the Taliban's attack had only made her more resolute.

"The terrorists thought that they would change my aims and stop my ambitions," she said, "but nothing changed in my life, except this: weakness, fear and hopelessness died. Strength, power and courage was born."

She continued: "I want education for the sons and daughters of the Taliban and all the terrorists and extremists."

Malala - who is considered a contender for the Nobel Peace Prize - said she was fighting for the rights of women because "they are the ones who suffer the most".

"The extremists were, and they are, afraid of books and pens," added Malala, who was wearing a pink shawl that belonged to assassinated Pakistan leader Benazir Bhutto. "They are afraid of women."

She called on politicians to take urgent action to ensure every child has the right to go to school.

Media playback is unsupported on your device Media caption Latest figures show Pakistan has the second highest number of children out of school in the world.

"Let us pick up our books and pens," Malala summed up. "They are our most powerful weapons.

"One child, one teacher, one pen and one book can change the world. Education is the only solution. Education first."

A passionate campaigner for female education, Malala addressed more than 500 students at a specially convened youth assembly.

UN Secretary General Ban Ki-moon also addressed Friday's session, calling Malala "our hero".

The schoolgirl, who set up the Malala Fund following the attack, presented a petition of more than three million signatures to the UN secretary general demanding education for all.

BBC School Report at the UN Image copyright School Report Holly and Lauren are 15-year-old pupils from Bartley Green School in Birmingham who are travelling to New York as part of the BBC's reporting team to cover a unique Youth Assembly and Malala Yousafzai's keynote speech

In March on School Report's annual News Day they co-presented BBC Radio 4's Women's Hour with Jenni Murray

Stories covered by the girls on air included the issue of safety on buses in the wake of the fatal stabbing of schoolgirl Christina Edkins on her way to school In pictures: Malala Day Holly and Lauren's updates from the UN

Former British Prime Minister Gordon Brown opened the session, telling the youths gathered they were a "new superpower" in the world, and appealing to them to help overcome obstacles to accessing education.

The event, described by the UN as Malala Day, was organised by Mr Brown, now the UN Special Envoy for Global Education.

He said: "Getting every girl and boy into school by 2015 is achievable.

"Malala says it is possible - and young people all over the world think it is possible," he said.

Aid agencies say that female access to education in Pakistan is a particular problem.

They say that the country ranks among the lowest in terms of girls' education enrolment, literacy and government spending.

Unesco and Save the Children released a special reported ahead of Malala's speech.

It found that 95% of the 28.5 million children who are not getting a primary school education live in low and lower-middle income countries: 44% in sub-Saharan Africa, 19% in south and west Asia and 14% in the Arab states.

Girls make up 55% of the total and are often the victims of rape and other sexual violence that accompanies armed conflicts.