change text size on web server

i made a web server with esp8266 but the text is really small and i wanted to make it bigger but it didnt change anything when i tried to change it, what am i doing wrong?

  client.print("<input type=submit value=Update style=width:300px;height:100px;font-size:4em; onClick=location.href='/Tem=ON'>"); //font-size:4em works here

  client.print("
<font-size:4em> Sensor 1 Temperature= "); // but it doesnt work here
  client.print(<font-size:4em>Celsius1); //or here

You need to brush up on your HTML. "font-size" is part of the "style" attribute...

style=font-size:4em

...also the "style" attribute must be part of a valid html tag, for example "span"...

<span style=font-size:4em> Sensor 1 Temperature= </span>

...and have a close tag somewhere ""

Edit so...

client.print("
<span style=font-size:4em> Sensor 1 Temperature= ");
client.print(Celsius1);
client.print("</span>");
1 Like

thank you it works