微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何在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>

以上就是如何在HTML中使用引用标签标记工作标题?的详细内容,更多请关注编程之家其它相关文章

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐