View Single Post
Old 09-30-2020, 12:40 AM   #6
mingsphinx
Junior Member
mingsphinx began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Sep 2020
Device: none
Using <a> instead of <span>

If I tag a segment of text as a link, most of the EPUB readers will make that text a different color (usually blue) and underline it. But the opening tag has to be <a href="xyz">. If the href is left out, then most readers will simply disregard the <a> tag and the text will be styled as with any text. If I set the href to null, meaning: <a href="">, then the readers will style the text as blue and underline it but then display an error when the link is clicked on.

Is there a way for the href to end up refering to that segment of text? It would be a complicated way of adding color to text but since there is no way at this point to get most EPUB readers to respect the css styling, this might be one work around.
mingsphinx is offline   Reply With Quote