esp 8266 web server

I have to follow the instructions of the article: but did not know how to display the status of the leds on the web server on esp 8266 for the lED is turned on or not, you can help me?

Why not look at the example provided instead of the basic web server which you linked to ?