<分区>
我正在做一项作业,我正在为我的网站使用 Google 字体。我正在尝试使用 W3C 验证我的 HTML,因为我的作业必须有效才能获得满分,而且我一直收到 Google 字体代码错误。我似乎无法弄清楚为什么。这是代码:
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Orbitron|Special+Elite|Open+Sans">
这是我从 W3C 收到的错误消息:
Bad value http://fonts.googleapis.com/css?family=Orbitron|Special+Elite|Open+Sans for attribute href on element link: Illegal character in query: not a URL code point.
…href="http://fonts.googleapis.com/css?family=Orbitron|Special+Elite|Open+Sans">
Syntax of IRI reference: Any URL. For example: /hello, #canvas, or http://example.org/. Characters should be represented in NFC and spaces should be escaped as %20.
有什么想法吗?我是 HTML5 的新手,所以我不确定我在这里遗漏了什么。