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 How to Make a Website Responsive Web Design and Testing Website Testing

Pedro Bustillo
Pedro Bustillo
3,608 Points

The 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

It 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

8 Answers

Pedro Bustillo
Pedro Bustillo
3,608 Points

sorry 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
Pedro Bustillo
3,608 Points

sure!

<!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

Try giving that another go. :-)

Specifically, I'm curious about the head of the document.

-Brent

Pedro Bustillo
Pedro Bustillo
3,608 Points

hi Brent,

Did you get me answer? sorry don't know if I gave you what you needed.

Cheers

P

Sorry, 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
Pedro Bustillo
3,608 Points

Hello

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>

Did 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
Pedro Bustillo
3,608 Points

Thank 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
Pedro Bustillo
3,608 Points

Hi 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.

I'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">

Ahh, 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
Pedro Bustillo
3,608 Points

Many thanks for your inputs and sharing .... cheers