显示
HTML5块引用的正确方法是什么?
我有以下几点:
<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>
但是我不知道把这个引用放在blockquote里面是否正确,并且想要适当地进行风格化,但是如果我把它从引用中移出来,我需要用一个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>
解决方法
基于
recent changes in the HTML specifications,这是现在正确的方式来处理引用的引号.
<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>