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.
- Weekly Trends
- Python Interview Questions and Answers: Comprehensive Guide
- Scala Exercises, Practice, Solution
- Kotlin Exercises practice with solution
- MongoDB Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - JOINS
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- JavaScript String Exercises
- JavaScript HTML Form Validation
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join