Computer >> Computer tutorials >  >> Programming >> HTML

How to mark work title using cite tag in HTML?


Work title can be the title for a book, a song, a painting, a movie, etc. To mark work title in HTML, use <cite>…</cite> tag. The <cite> tag indicates citation and whatever comes inside the tag represents work title.

How to mark work title using cite tag in HTML?

Example

You can try to run the following code to mark work title using <cite> tag in HTML

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