HTML cite attribute
cite
The purpose of the HTML cite attribute is to specify the URL which points to the source document or message.
Supported elements
HTML cite attribute supports blockquote, del, ins, q elements.
Syntax
<blockquote cite="value">..............</blockquote>
Type of value
URL.
Value
A URL.
Default value
There is no default value.
Supported doctypes
HTML 4.01 strict, HTML 4.01 transitional, HTML 4.01 frameset.
Example of HTML cite attribute with blockquote
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Example of HTML cite attribute with blockquote</title>
</head>
<body>
<blockquote cite="https://www.w3resource.com/html/HTML-tutorials.php"><p>We have covered all the HTML 4.01 elements or tags and their attributes. Because it is HTML elements (or tags ) and attributes, which you need to understand for learning HTML.</p></blockquote>
</body>
</html>
Result
View this example in a separate browser window
Example of HTML cite attribute with blockquote.
Example of HTML cite attribute with q
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Example of HTML cite attribute with q</title>
</head>
<body>
<p><q cite="https://www.w3resource.com/html/HTML-tutorials.php">HTML, stands for Hyper Text Markup Language</q></p>
</body>
</html>
Result
View this example in a separate browser window
Example of HTML cite attribute with q.
Example of HTML cite attribute with ins and del
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Example of HTML cite attribute with ins and del </title>
</head>
<body>
<p>We are using <del cite="https://www.w3resource.com/html/HTML-tutorials.php">HTML 4.01</del> <ins cite="https://www.w3resource.com/html/HTML-tutorials.php">XHTML 1.0</ins> for our pages.</p>
</body>
</html>
Result
View this example in a separate browser window
Example of HTML cite attribute with ins and del.
Previous: HTML checked attribute
Next: id and class attributes of HTML
Test your Programming skills with w3resource's quiz.
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/html/attributes/html-cite-attribute.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics