如何在 HTML 中使用 cite 標籤標記作品標題?


作品標題可能是書名、歌曲名、畫名、電影名等。

我們在 HTML 中使用<cite> 標籤來標記作品標題。<cite> 標籤表示引用,標籤內任何內容都代表頁面上特定內容的作品標題。

語法

以下是 <cite> 標籤的語法。

<cite> Work title</cite>

示例

以下是 <cite> 標籤的示例程式。

<!DOCTYPE html> <html> <head> <title>HTML cite tag</title> </head> <body> <h1>Heading</h1> <p> Learn Java from <cite>Java The Complete Reference</cite> by Herbert Schildt. </p> </body> </html>

示例

以下是 <cite> 標籤的另一示例程式。

<!DOCTYPE html> <html> <head> </head> <body> <p>DLF stands for <cite>Delhi Land and Finance</cite></p> <p>Delhi Land and Finance is one of the largest commercial real estate developer in India.</p> </body> </html>

示例

以下是 <cite> 標籤的另一個示例程式。

<!DOCTYPE html> <html> <head> <title>HTML blockquote tag</title> <style> blockquote { margin-left: 0; } </style> </head> <body> <h1>Drupal official website</h1> <p>Here is a quotation from Drupal’s official website</p> <blockquote cite="http://drupal.org">The Drupal project is open source software. Anyone can download, use, work on, and share it with others. It's built on principles like collaboration, globalism, and innovation.</blockquote> </body> </html>

更新日期: 11-11-2022

133 次瀏覽

開啟您的職業生涯

完成課程即可獲得認證

開始
廣告
© . All rights reserved.