HTML <cite> 标签

htmlweb developmentfront end technology更新于 2025/3/22 7:40:17

HTML 中的 <cite> 标签用于设置作品标题。可以是电影名称、歌曲名称、绘画名称等。

现在让我们看一个在 HTML 中实现 cite 标签的示例 −

示例

<!DOCTYPE html>
<html>
<body>
   <h1>Books</h1>
   <h2>Java</h2>
   <p>Refer the following books to learn Core Java:</p>
   <p><cite>Core Java: An Integrated Approach</cite> by R. Nageswara Rao.</p>
   <p><cite>Java - The Complete Reference</cite> by Herbert Schildt.</p>
   <h2>AngularJS</h2>
   <p>Refer the following books to learn AngularJS:</p>
   <p><cite>Pro AngularJS</cite> by Adam Freeman</p>
   <p><cite>Learning AngularJS: A Guide to AngularJS Development</cite> by Ken Williamson</p>
</body>
</html>

输出

在上面的例子中,我们使用 cite 标签设置了作品的标题 −

<h2>Java</h2>
<p>Refer the following books to learn Core Java:</p>
<p><cite>Core Java: An Integrated Approach</cite> by R. Nageswara Rao.</p>
<p><cite>Java - The Complete Reference</cite> by Herbert Schildt.</p>

如您所见,该书的标题是使用 <cite> 设置的 −

<cite>Core Java: An Integrated Approach</cite> by R. Nageswara Rao

相关文章


有用资源