HTML<q>標籤
HTML中<q>標籤用於指定一個引文短語。引號會嵌入到<q>標籤(即引號)內部設定的文本週圍。
以下為屬性——
cite: 它設定了此引文的來源網址。
現在我們來看一個使用<q>標籤的示例——
示例
<!DOCTYPE html> <html> <body> <h2>Thoughts</h2> <p>Warren Buffett quoted, <q>It's better to hang out with people better than you. Pick out associates whose behavior is better than yours and you'll drift in that direction. </q></p> <p>Bill Gates quoted, <q>Your most unhappy customers are your greatest source of learning.</q></p> </body> </html>
輸出
在上面的示例中,我們使用HTML中的<q>標籤設定了一些引文——
<p>Warren Buffett quoted, <q>It's better to hang out with people better than you. Pick out associates whose behavior is better than yours and you'll drift in that direction. </q>
如上所示,我們已經使用<q>標籤設定此引文。輸出顯示<q>標籤會自動在引文周圍新增短引號。
廣告