Re: An Possible Error in need of fixing

Dman 028 <bradley.dylan028@gmail.com>, 2018-02-14 17:59 -0500:
> Archived-At: <https://www.w3.org/mid/5a84bf61.022ac80a.6f038.0ee5@mx.google.com>
> 
>               It has come to my attention that the W3C Validator claims
> when you use Google Fonts that “Bad value
> https://fonts.googleapis.com/css?family=One|Two|Three+Four:400,700 for
> attribute href on element link: Illegal character in query: | is not
> allowed.” (Where One, Two, and Three Four are font names.) 
>               However, Google Fonts requires the use of the “|”
> character, to obtain several fonts at once.

Replace the “|” characters with “%7C”:

> https://fonts.googleapis.com/css?family=One%7CTwo%7CThree+Four:400,700

“|” characters aren’t allowed in URLs, so you need to percent-encode them as “%7C”

-- 
Michael[tm] Smith https://people.w3.org/mike

Received on Saturday, 24 February 2018 05:59:32 UTC