如何在 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>
廣告
資料結構
網路
RDBMS
作業系統
Java
iOS
HTML
CSS
Android
Python
C 程式設計
C++
C#
MongoDB
MySQL
Javascript
PHP