Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By Gallup
#29694 This works in the Arduino (IDE) in a web page for ESP8266

String form =
"<p>"
"<CENTER>"
"<H1> This is my web page title <h1>"
"<HR>"
"<HR>"
"<H2> Smaller text <h2>"
"</CENTER>";
Here is a sample of inline CSS:
"<H2 style="color:red;background:black;">This is a red heading with a black background<H2>"
I am unable to make the C++ IDE interpret that line like it is. Is there a solution?
User avatar
By martinayotte
#29706
Gallup wrote:"<H2 style="color:red;background:black;">This is a red heading with a black background<H2>"

You need to escape the dougle-quote inside the string ...
it should be :
Code: Select all"<H2 style=\"color:red;background:black;\">This is a red heading with a black background<H2>"