When you first bought an arduino wifi shield you might face some problems in making wifi webserver. This is due to the firmware on the wifi shield not supporting the webserver.
A latest firmware upgrade should make this work. But upgrading the firmware is quite a process for a begineer.
Let me show you a simple and step by step to upgrade the firmware.