Google Font Embed issue

I am trying to use a google font into a web App

I have added the following to the Application.HTMLheader

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Rock Salt“>

When I attempt to run the application in the debugger on my local machine it hangs on initial load.

Suggestions?

The error message in the browser is: Failed to load resource: the server responded with a status of 400 (Bad Request).

Application.HTMLHeader takes a String, so when you enter the text you need to double the quotes, or use single quotes:

<link rel=""stylesheet"" type=""text/css"" href=""http://fonts.googleapis.com/css?family=Rock Salt"“>

or

<link rel='stylesheet' type='text/css' href='http://fonts.googleapis.com/css?family=Rock Salt'>

Doubling the quotes is not necessary in that field.

You do need to replace the spaces in the url though:

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Rock+Salt“>

[quote=177139:@Jay Menna]I am trying to use a google font into a web App

I have added the following to the Application.HTMLheader

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Rock Salt“>

When I attempt to run the application in the debugger on my local machine it hangs on initial load.

Suggestions?[/quote]

Is the curly quote after Rock Salt intended ? I shall think a regular quote would be better…

Good catch!