How to remove underlines in Hyperlinks

When I create a hyperlink from my ESP32 server, its underlined when displayed on my iPad.
I tried adding text-decoration:none to the following section of my program that creates the links but it doesn't work, not sure why.

Any help would be appreciated
Thanks.

	for (y = 0; y < i; y++) {
		client.print("<a href='" style="text-decoration:none)";         // create hyperlink
		client.print(y);                   // subpage to 192.168.1.100
		client.print("'>");
		client.print(titlesbuffer[y]);    
		client.print("</a><br><br>");     

Where?

``` ... text-decoration: none; ... ```

Isn't that an iPad issue?

I tried to adding the text-decoration:none to various places in the code that I showed in the forum question and it didn't work.

Can you show the HTML? Or, test it on windows/linux OS.

Is it possible your iPad recognized hyperlinks and dutifully underlines them?

If you send a hyperlink to your iPad , it will display it as such .
Why do you want to send a hyperlink and not display it as such ?
The answer is not to send a hyperlink !

Show the html no-decoration that you say does not work.

modified code above with text-decoration but can't seem to get it to compile
compilation error: expected ')' before 'style'

Need the hyperlinks but the underline can be removed just not figuring out the format

tried this
client.print("<a style="text-decoration: none;" href='");
get error Compilation error: unable to find string literal operator 'operator""text' with 'const char [10]', 'unsigned int' arguments

client.print("<a style=text-decoration: none href='");
compiles but doesn't do anything

you have to escape the " or use '

try

client.print("<a style='text-decoration: none' href='");

If this should be done for severals links on one page, consider to style the anchor globally.

And PLEASE do what you get asked for. If someone asks you to post the HTML - post the HTML. This increases the chance that you get back a working example.

Thanks, the code modification worked

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.