Re: Google Font

The fragment doesn’t produce any validation errors with the HTML 4 validator, because the legacy DTD validator doesn’t check the syntax of most attribute values (IDs and IDREFs are an exception)

The fragment does produce validation errors when checked as HTML 5, because the HTML 5 validator does check attribute syntax.

The | character has a special meaning in a URL and isn’t allowed in the query string part after ? so needs percent encoded as %7C

The characters allowed are listed here:

Best Regards

Mark Rogers -
PowerMapper Software Ltd -
Registered in Scotland No 362274 Quartermile 2 Edinburgh EH3 9GL

From: "Philip Taylor (RHUoL)" <P.Taylor@Rhul.Ac.Uk>
Date: Thursday, 8 February 2018 at 15:21
To: "" <>
Cc: "" <>
Subject: Re: Google Font
Resent-From: "" <>
Resent-Date: Thursday, 8 February 2018 at 15:20

You could always URL-encode the "|".  But for me, your fragment validates when properly embedded :

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   <link href="|Roboto+Mono|Playfair+Display:700,900"<|Roboto+Mono|Playfair+Display:700,900> rel="stylesheet">
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <meta http-equiv="Content-Style-Type" content="text/css">

Philip Taylor
-------- wrote:

  1.  Error: Bad value|Roboto+Mono|Playfair+Display:700,900 for attribute href on element link<>: Illegal character in query: | is not allowed.

From line 36, column 5; to line 36, column 120

t" />↩ <link href="|Roboto+Mono|Playfair+Display:700,900"<,900> rel="stylesheet" />↩ <
It's may be the time for autorise |?


Received on Thursday, 8 February 2018 16:36:36 UTC