HTML属性值中的引号? [英] Quotation marks in HTML attribute values?

查看:146
本文介绍了HTML属性值中的引号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



你如何在HTML代码中使用双重语音标记(alt tags等)?

p>

例如..

我试图在我的网页中设置一个标签为 它是利物浦的开放积分,但限制为开设积分

解决方案

您需要使用相应的 HTML实体代替引号:

 < span alt =Opening Credits & quot;它是利物浦">跨度< / span> 


This may seem like a realy basic question but...

How do you use double speech marks in HTML code (alt tags and the such)?

For example..

I'm trying to set a tag in my webpage to Opening Credits for "It's Liverpool" but it's limiting it to Opening Credits for.

解决方案

You'll want to use the corresponding HTML entity in place of the quotes:

<span alt="Opening Credits for &quot;It's Liverpool&quot;">A span</span>

这篇关于HTML属性值中的引号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆