2023如何在HTML中使用引用标签标记工作标题?

 所属分类:web前端开发

 浏览:92次-  评论: 0次-  更新时间:2023-09-23
描述:更多教程资料进入php教程获得。 工作标题可以是书籍、歌&#2635...
更多教程资料进入php教程获得。

如何在HTML中使用引用标签标记工作标题?

工作标题可以是书籍、歌曲、绘画、电影等的标题。

我们使用<cite>标签来标记HTML中的工作标题。<cite>标签表示引用,标签内的内容代表网页上指定事物的工作标题。

语法

Following is the syntax for the <cite> tag.

<cite> Work title</cite>

Example

以下是<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>

Example

Following is another example program for the <cite> tag.

<!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>

Example

以下是<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>
积分说明:注册即送10金币,每日签到可获得更多金币,成为VIP会员可免金币下载! 充值积分充值会员更多说明»

讨论这个素材(0)回答他人问题或分享使用心得奖励金币

〒_〒 居然一个评论都没有……

表情  文明上网,理性发言!