相关疑难解决方法(0)

为HTML属性使用单引号是否正确?

最近我看到了很多这样的事情:

<a href='http://widget-site-example.com/example.html'>
    <img src='http://widget-site-example.com/ross.jpg' alt='Ross&#39;s Widget' />
</a>
Run Code Online (Sandbox Code Playgroud)

在HTML中使用单引号是否有效?正如我在上面强调的那样,它也存在问题,因为你必须逃避撇号.

html syntax coding-style apostrophe

65
推荐指数
4
解决办法
3万
查看次数

标签 统计

apostrophe ×1

coding-style ×1

html ×1

syntax ×1