微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

html5 – 正确的HTML Blockquote

显示 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>

原文地址:https://www.jb51.cc/html5/168625.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。