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

WBOY
发布: 2023-09-07 15:17:02
转载
640 人浏览过

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

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

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

语法

Following is the syntax for the tag.

<cite> Work title</cite>
登录后复制

Example

以下是标签的示例程序。

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

以下是标签的另一个示例程序。

<!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中使用引用标签标记工作标题?的详细内容。更多信息请关注PHP中文网其他相关文章!

来源:tutorialspoint.com
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!