In order to be displayed properly by a browser the HTML should be returned as text/html.
* POST web server example Should help with the confusion around the plain keyword * Update WiFi settings vars, use LED_BUILTIN