This forum is now read-only. Please use our new forums at discuss.codecademy.com.

33 points
7c3d64203a2d32576f1e4a7fc788c2cb?s=140&d=retro
Submitted by
Imran Khan
over 5 years ago

How can I create a hyperlink for just one word?

I cannot seem to create a link using just a word in a paragraph. I have successfully created a link for the whole paragraph by place the on either end of a paragraph and it works fine. But when I try to do it to a single word that word and everything after it just disappears when I hit submit.


2 votes

permalink

I can't use html code because it will dissapear as soon as i click on "add answer", so i replace these ones "< >" with "[ ]". Of course you have to change them back when using it.

Just write your paragraph and replace that one WORD with this line of code:
[a href="http://www.codecademy.com/"]WORD[/a]

268 points
Picture
Submitted by
Michel Bak
over 5 years ago


0 votes

permalink

I have tried to use these instructions & the links do not show up in the preview for me. Have I overlooked something?

[p][a herf="http://www.cooksister.com/2008/11/garlicky-sauteed-brussels-sprouts.html/"]For sprout haters.[/a][/p][p]The following recipies have been collected over time and will hopefully have your man thinking,[a herf="http://poorandglutenfree.blogspot.ca/2012/11/8-ways-to-use-swiss-chard-stalks.html/"]Is this Swiss Chard? [/a] It's crunchy! While eating his still ketchup covered breakfast.[/p][/body][/html]

868 points
5245dfaaabf8218498000522_304164169
Submitted by
Elizabeth Edwards
about 5 years ago