Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Andrew Norris
Andrew Norris
4,857 Points

Error while validating html code of page index.html

When submitting code for index.html for validation at http://validator.w3.org/check can anyone tell me where the code to the call to the Google fonts api href link is invalid?

<link href='http://fonts.googleapis.com/css?family=Changa+One| Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>

Samuel Webb
Samuel Webb
25,370 Points

We need to be able to see your code to effectively help you. Please post your code and for proper formatting, click the Markdown Cheatsheet below the Add an Answer box.

Andrew Norris
Andrew Norris
4,857 Points

Here's the code now. Substituting %7c for the | symbol solved the problem. <link href='http://fonts.googleapis.com/css?family=Changa+One%7cOpen+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>

1 Answer

Depending on the link you may need to replace the | with %7c

Do check out this thread and also search the forum for w3c

https://teamtreehouse.com/forum/w3c-validation-doesnt-recognize-google-fonts-anymore

Andrew Norris
Andrew Norris
4,857 Points

Thanks, Micah. Adding %7c in place of the pipe symbol worked.