0 votes
by (790 points)

HTML in game:

blahblah, <span class="bluelink"><<linkappend "something">></span>

blah blah

<</linkappend>>


CSS:

.bluelink a {
  color: blue;
}

.bluelink a:hover {
  color: indigo;
}

"</span>" becomes part of the text after the player clicks on the linkappend. But removing it causes an error. Why is this so? Is it not possible to colour linkappends a different colour than normal links?

1 Answer

+1 vote
by (159k points)
selected by
 
Best answer

You can't interlace start and end tags.

BAD: <tag1> <tag2> </tag1> </tag2>

GOOD: <tag1> <tag2> </tag2> </tag1>

 

Try the following:

blahblah, <span class="bluelink"><<linkappend "something">>

blah blah

<</linkappend>></span>

 

by (790 points)
I see, thanks!
...