/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: cite

[this page | pdf | back links]

The HTML cite attribute provides a URL which explains a quote, deleted text or inserted text. It applies to <blockquote>, <del>, <ins> and <q> elements. It has no visual effect in typical web browsers but can be used by screen readers.

 

Valid attribute values (when used with <blockquote>, <del>, <ins> elements) include:

 

Value

Description

URL

Source of quote, deletion or insertion

 

EXAMPLE:


HTML USED IN THIS EXAMPLE:
<!DOCTYPE html>
<html> <!-- Copyright (c) Nematrian Limited 2018 -->
<head></head>
<body>
<q cite="http://www.nematrian.com/Introduction">Set using HTML</q>
<br><br>
<q id="element">Set using JavaScript</q>

<script>
document.getElementById("element").cite = "http://www.nematrian.com/Introduction";
</script>

</body>
</html>


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile