我正在尝试使用网站Neocities将字体添加到我的HTML代码中,当添加字体时,出现一个错误,提示Name entity expected. Got none.
我已尝试搜索p如何解决此错误,但是没运气。这是Google字体给我使用的代码:<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
这是因为链接或src中有一个“&”符号。HTML不会读取&符号等实体。您应该使用%26作为与号。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句