Home  >  Article  >  Web Front-end  >  q和blockquote标签的区别_html/css_WEB-ITnose

q和blockquote标签的区别_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:54:481292browse

q用来分离文本中的引语,定义一个短的引用。该标签会对引用的文本加双引号,一般情况很少用,博客论坛系统会用得多一些;

blockquote用于对长文本的引用,用来定义一段引语,标签内的内容会自动有缩进;

 1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 5 <title>q和blockquote的区别</title> 6 </head> 7 <body> 8 <h2>短文本引用</h2> 9 <p>痞子蔡的小说</p>10 <q>第一次亲密接触</q>11 <p>总是一遍遍的重复,一遍遍的感动</p>12 <h2>长文本引用</h2>13 <p>一直记着轻舞飞扬的经典语句</p>14 <blockquote>我轻轻地舞着,在拥挤的人群之中。你投射过来异样的眼神。诧异也好,欣赏也罢。并不曾使我的舞步凌乱。因为令我飞扬的,不是你注视的目光。而是我年轻的心!</blockquote>15 <p>有你的地方是天堂</p>16 </body>17 </html>

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn