显示HTML5 blockquote的正确方法是什么?
我有以下内容:
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<cite>John Doe<br/>ACME Industries</cite>
</blockquote>
Run Code Online (Sandbox Code Playgroud)
但是我不确定将块引用放入块引用是否正确并且想要适当地设置它的样式但是如果我将它移出引号我将需要用div包装以给出独特的样式属性.思考?谢谢
另外根据:http://dev.w3.org/html5/spec/Overview.html#the-cite-element我应该使用<b>标签名称?
这是正确的吗?
<div class="testimonial">
<blockquote>
<p>The team worked closely with us to define our requirements, delivering the project over agreed phases to time and on budget</p>
</blockquote>
<p><b>John Doe</b><br />ACME Industries</p>
</div>
Run Code Online (Sandbox Code Playgroud)
dal*_*len 22
根据HTML规范的最新变化,现在这是处理带引文的块引用的正确方法.
<blockquote>
<p>Measuring programming progress by lines of code is like measuring aircraft building progress by weight.</p>
<footer>
— <cite><a href="http://www.thegatesnotes.com">Bill Gates</a></cite>
</footer>
</blockquote>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11913 次 |
| 最近记录: |