主页
HTML
HTML 属性
试用: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>