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 trialPedro Bustillo
3,608 PointsThe validation gives an error
Why do I get this message from the validator.w3.org, when the coding looks the same than the one from the video?
Error: Bad value http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800 for attribute href on element link: Illegal character in query: not a URL code point.
From line 7, column 5; to line 7, column 142
css">↩ <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>↩
Syntax of URL:
Any URL. For example: /hello, #canvas, or http://example.org/. Characters should be represented in NFC and spaces should be escaped as %20.
thanks
8 Answers
Pedro Bustillo
3,608 Pointssorry don't know what happened ... here we go
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Pedro Bustillo Finance</title> <link rel="stylesheet" href="css/normalize.css"> <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/responsive.css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head>
Pedro Bustillo
3,608 Pointssure!
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Pedro Bustillo Finance</title> <link rel="stylesheet" href="css/normalize.css"> <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/responsive.css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head>
thanks
Brent Cralley
18,541 PointsTry giving that another go. :-)
Specifically, I'm curious about the head of the document.
-Brent
Pedro Bustillo
3,608 Pointshi Brent,
Did you get me answer? sorry don't know if I gave you what you needed.
Cheers
P
Brent Cralley
18,541 PointsSorry, without seeing the code, I really can't tell you what's wrong.
Are you sure that font is still available on google's font API?
Are you sure the syntax around how it is used is 100% correct?
-Brent
Pedro Bustillo
3,608 PointsHello
I have sent you the code three times (copied pasted from the workspace) .... don't know why cannot you see it.
Everything should be ok or it would have not run well from the beginning. This was one of the first code of the class.
Any way .... very boring wasting time with this .... don't worry any more.
Thank you for trying
Cheers.
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Pedro Bustillo Finance</title> <link rel="stylesheet" href="css/normalize.css"> <link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/responsive.css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head>
Brent Cralley
18,541 PointsDid you reference the "Markdown Cheatsheet" for how you posted your code?
You can't simply copy and paste it. You need to add 3 " ` " symbols before/after it.
The link to the cheatsheet is right below the comment and answer boxes.
Pedro Bustillo
3,608 PointsThank you.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Pedro Bustillo Finance</title>
<link rel="stylesheet" href="css/normalize.css">
<link href='http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/responsive.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
Pedro Bustillo
3,608 PointsHi Brent
I am back here again. I tried what you said and it does not work.
Still getting the same message for the validator.w3
Error: Bad value https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800 for attribute href on element link: Illegal character in query: not a URL code point.
From line 7, column 6; to line 7, column 111
ss">↩ <link href='https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800'>↩
Syntax of URL:
Any URL. For example: /hello, #canvas, or http://example.org/. Characters should be represented in NFC and spaces should be escaped as %20.
Thanks
Pedro.
Erin Doherty
4,368 PointsErin Doherty
4,368 PointsI'm getting the exact same error (except my font choice is Raleway, not Changa).
<link href='http://fonts.googleapis.com/css?family=Raleway:400,600|Open+Sans:400,600,300italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/main.css">
Erin Doherty
4,368 PointsAhh, nevermind, someone had the same issue and an answer on another thread! https://teamtreehouse.com/community/had-a-few-errors-validating-my-html-can-anyone-help-me-fix-them
Pedro Bustillo
3,608 PointsMany thanks for your inputs and sharing .... cheers
Brent Cralley
18,541 PointsBrent Cralley
18,541 PointsIt looks like you're having an issue with the font that you're importing from google, or perhaps just the syntax around how it's implimented. Could you please post the code for us? :-)
Thanks! -Brent