Home >Web Front-end >HTML Tutorial >The difference between q and blockquote tags_html/css_WEB-ITnose
q is used to separate quotations in text and define a short quotation. This tag will add double quotation marks to the quoted text. It is rarely used in general and will be used more in blog forum systems;
blockquote is used to quote long text and is used to define a quotation within the tag. The content will be indented automatically;
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>