• 技术文章 >web前端 >前端问答

    html5中引用标记是什么元素

    青灯夜游青灯夜游2021-12-16 16:42:31原创112

    html5中引用标记是“blockquote”或“q”元素。blockquote元素可定义摘自另一个源的块引用,浏览器通常会对blockquote元素进行缩进;而q元素可定义不需要段落分隔的短引用,浏览器经常会在这种引用的周围插入引号。

    本教程操作环境:windows7系统、HTML5版、Dell G3电脑。

    在html5中有两种引用标记:

    <blockquote> 标签

    <blockquote> 标签定义摘自另一个源的块引用。

    浏览器通常会对 <blockquote> 元素进行缩进。

    <!DOCTYPE html>
    <html>
    <head> 
    <meta charset="utf-8"> 
    </head>
    <body>
    
    <h1>About WWF</h1>
    <p>Here is a quote from WWF's website:</p>
    
    <blockquote cite="http://www.worldwildlife.org/who/index.html">
    For 50 years, WWF has been protecting the future of nature. The world’s leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.
    </blockquote>
    
    </body>
    </html>

    1.png

    <q> 标签

    <q> 标签定义不需要段落分隔的短引用。

    浏览器经常会在这种引用的周围插入引号。

    <!DOCTYPE html>
    <html>
    <head> 
    <meta charset="utf-8"> 
    </head>
    <body>
    
    <p>WWF's goal is to: 
    <q>Build a future where people live in harmony with nature.</q>
    We hope they succeed.</p>
    
    </body>
    </html>

    2.png

    推荐教程:《html视频教程

    以上就是html5中引用标记是什么元素的详细内容,更多请关注php中文网其它相关文章!

    声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。
    专题推荐:html5 引用标记
    上一篇:html5中的p是什么意思 下一篇:html5页面交互元素有哪些

    相关文章推荐

    • html5不支持的元素有哪些• html5进度条的标签是哪个标签• html5新增加的结构标签有哪些• html5标记分为哪几类• html5属性值两边用什么符号

    全部评论我要评论

  • 取消发布评论发送
  • 1/1

    PHP中文网