adafruit wifi html page


I am trying to do a project that is accessible from the internet.
I have arduino uno and a cc3000 wifi shield from adafruit:

I have successfully connected to wifi shield and run the examples but what I want to do is similar to this code:
client.println(“HTTP/1.1 200 OK”);
client.println(“Content-Type: text/html”);
client.println(“Connection: close”); // the connection will be closed after completion of the response
client.println(“Refresh: 5”); // refresh the page automatically every 5 sec
// output the value of each analog input pin
for (int analogChannel = 0; analogChannel < 6; analogChannel++) {
int sensorReading = analogRead(analogChannel);
client.print(“analog input “);
client.print(” is “);

so when someone enters from a browser the ip address of my wifi shield can see an HTML page with sensor data, etc.
but so far I didn’t succeed to do something similar
the above code is taken from:

Please help

Start with the standard webserver examples and get those working before you start experimenting with the returned page content. Has your web server successfully connected to your local network and got a valid IP address yet? Do you know what address that is? Is the address reachable from the PC where you are running a web browser?