In this tutorial, I will explained how to get LED turn on an off that has connected to the Esp8266. The esp8266 has programmed from Arduino IDE to control the LED. This module will create a server using the router and we will set a web page for this server.
We will use the HTML commands to create the buttons on page and for printing LED status. you can easily follow the steps to make this ESP8266 – LED Control from Web server Toggle Button project by yourself
For code and schematic check the first pinned comment