2016-04-21 50 views
1

我有其中包含一個樣式錶鏈接,但不起作用■所有的XHTML,因爲驗證這樣說:XHTML驗證致命錯誤(等號)

Fatal Error: required character (found =) (expected ;)

At line 10, column 69

=Raleway&subset=latin-ext' rel

這HTML5工作正常。我該怎麼辦?

這是我的代碼部分:

<link href='https://fonts.googleapis.com/css?family=Raleway&subset=latin-ext' rel='stylesheet' type='text/css'></link> 

謝謝。

+0

的[XHTML和和可能的複製(和號)encoding](http://stackoverflow.com/questions/275150/xhtml-and-ampersand-encoding) –

+0

'&'無效;使用'&'來解決這個問題。這是一個很棒的Unicode字符編碼網站:http://unicode-table.com/en/ – John

回答

1

也許你應該使用htmlentity &amp;爲標誌 「&」

我確認沒有錯誤下面的代碼:

<?xml version="1.0" encoding="UTF-8" ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"> 
    <head> 
    <title>Example</title> 
    <link href="https://fonts.googleapis.com/css?family=Raleway&amp;subset=latin-ext" rel="stylesheet" type="text/css"></link> 
    </head> 
    <body> 
    <p>some text</p> 
    </body> 
</html> 

問候