Changing color and font in anchor code

  • 1
  • Question
  • Updated 5 years ago
  • Answered
I have a question about anchoring. Is there a way to change the font size and color in this html code: How to write a text?
Help much appreciated... (I did do a search for this question but didn't find anything on this, so apologies if I missed it!)
Photo of Tatjana Good

Tatjana Good

  • 4 Posts
  • 1 Reply Like

Posted 5 years ago

  • 1
Photo of Tatjana Good

Tatjana Good

  • 4 Posts
  • 1 Reply Like
I just realized that the code I wrote was translated and therefore you can't see the code. I am just referring to the html code about inserting an anchor.... what can I add to be able to change font and color? thanks heaps!
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Hello Tatjana,

If you know how to make adjustments of text wrt Font and colour then just treat the anchor text as ordinary text before you enclose it with the anchor tags. That works well.

If you need specific direction on this pleas let me know and enclose your encoded text with < code > your HTML encoded text here < /code >. (Please remove the spaces after the < and befoe the closing > angle brackets. I needed to do this to prevent the forum from rendering the inherent code of the tags.)
Photo of Tatjana Good

Tatjana Good

  • 4 Posts
  • 1 Reply Like
Dear Gop

thanks for taking the time to reply. I am essentially learning by doing. The code that I tried to incorporate was:

<font color="#664400" face="Arial,Arial Unicode MS" size="3"><a href="#Prepare">How should I prepare for class?</a></font><font color="#664400"><br></font>

with "Prepare" being the link name to the question "How should I prepare for class?"; but that didn't work. The text shows up in blue, and maybe that is just the way it is supposed to be to indicate there is a link there... ?

Many thanks and have a lovely day!
Tatjana
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
This sounds like an active links setting within the Style. Can you tell me the Style you are using?

Next question: Do you want any links to be displayed in the blue font? (anchor or otherwise)
Photo of Crystal

Crystal, Champion

  • 250 Posts
  • 79 Reply Likes
Hello Tatjana,

If you switch the order of the code so that the font info is inside the href, it should work.


<a href="#Prepare"><font color="#664400" face="Arial,Arial Unicode MS" size="3">How should I prepare for class?</font></a>
Photo of Tatjana Good

Tatjana Good

  • 4 Posts
  • 1 Reply Like
Thanks to both Gop and Crystal for helping. Crystal, that did the trick!
Photo of Gop

Gop

  • 7473 Posts
  • 2115 Reply Likes
Good to hear.