/

HTML / CSS / JavaScript Tutorial

HTML Element: <cite>

[this page | pdf | back links]

The HTML <cite> element indicates the title of a work (e.g. a book or movie). It is not typically used for the author of the work.

 

The attributes it can take are HTML global attributes and HTML event attributes.

 

To create or access such an element in JavaScript see here. The corresponding HTML DOM object supports standard DOM properties and methods. The default style applicable to this element is shown here.

 

EXAMPLE:


HTML USED IN THIS EXAMPLE:
<!DOCTYPE html>
<html> <!-- Copyright (c) Nematrian Limited 2018 -->
<head></head>
<body>
Created using HTML:<br>
<cite>cited text</cite>

<br><br>Created using JavaScript:<br>
<span id="element"></span>

<script>
var x = document.createElement("CITE");
x.textContent = "cited text";
document.getElementById("element").appendChild(x);
</script>

</body>
</html>


NAVIGATION LINKS
Contents | Prev | Next | HTML Elements


Desktop view | Switch to Mobile