主頁
HTML
HTML 屬性
Tryit: HTML 屬性引號
執行 ❯
建立您
自己的
網站
×
更改方向
儲存程式碼
更改主題,深色/淺色
前往 Spaces
<!DOCTYPE html> <html> <body> <h2>Single or Double Quotes?</h2> <p>In some situations, when the attribute value itself contains double quotes, it is necessary to use single quotes:</p> <p>Move your mouse over the paragraphs below to see the effect:</p> <p title='John "ShotGun" Nelson'>John with double quotes</p> <p title="John 'ShotGun' Nelson">John with single quotes</p> </body> </html>