<!DOCTYPE html>
<html>
<body style="background-color:powderblue;">
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Right, I understand. But unless you send those commands in an HTML.h file attached to the sketch code there is difficulty in just using "client.println" statements depending on what you are trying to accomplish. I have the SuperMon examples I have played with but that only applies to ESPs. I would like to be able to do similar thngs with the UNO WiFi Rev2 as well, which is a totally different animal.
I have actually loaded and looked at that code you referenced and it performs as designed.
Where I get into trouble is trying to send the HTML command for, say, a background color change. Do you have to send each segment individually? I have tried but get a compiler parse error sending this:
...compiler error: unable to find string literal operator 'operator""backgound' with 'const char [13]', 'unsigned int' arguments
...leave the quotes out and it shows up on the screen as plain text... which makes me think client.print has limitations for passing HTML to a browser.... I dunno.... I am too inexperienced to know for sure....
Quote marks like this " " are used to mark the beginning and end of the text you want to print (for your client.println statement, for example.)
When you use those quote marks in the middle of the text you want to print, the compiler gets confused and has no idea what you want to do.
That is why, if you want to print a quote mark like this: "
you have to escape it by putting a backslash in front, like this: \"
So, what you need your line of code to look like is this: client.println("<body style=\"background-color:powderblue;\">");
Notice where I put the backslashes. They tell the compiler: "Treat this quote mark as an actual quote mark, not as the end of the string to be printed."
Today is the first day in several that I have been able to try and sit down at a computer after my lower back decided to go out again. The vagaries of old age; you young whippersnappers need to enjoy life to the hilt while you can. LOL...