The best way is to take QTP and any webbased application..u can take google search...do recording as exhaustively as possible ..

There will be a lot of code generated in the expert view..check for the code
1. standardise the code as per S/w engineering Best Practices.
2. modify the code and validate specific's.
3. compare the code with the eg in manual...

Regards,
Nawab