cite
cite attribute
The cite
attribute in HTML provides a reference or citation for <q>
and <blockquote>
, indicating the source of the quoted text. It can also be used with <del>
and <ins>
to cite the source of deletions or insertions. The value should be a valid URL that points to the source document or the specific location within it that contains the quoted or referenced material.
Syntax
<tagname cite="URL">
Example
This is a longer block of qarpeo text that may extend for several sentences or paragraphs. It is from an external source, and the cite attribute provides a reference to that source.
<blockquote cite="https://institute.qarpeo.com">
<p>This is a longer block of qarpeo text that may extend for several sentences or paragraphs. It is from an external source, and the cite attribute provides a reference to that source.</p>
</blockquote>
Values
- URL
- A link or location to a document that provides an explanation for the quotation or modification of text.
Applies To
The cite
attribute is supported by the following HTML elements.
Del Example
Content has been removed, with a link provided to explain the reason for its removal.
This text has been deleted
<h1>The del cite attribute</h1>
<p><del cite="del_demo_cite.htm">This text has been deleted</del></p>
Conclusion
The cite attribute in HTML is used to provide a reference or source for quoted content, typically in <blockquote>
, <q>
, <del>
, and <ins>
elements. It should contain a valid URL pointing to the source document or specific location of the cited material. This helps clarify the origin of the quoted or modified content for users.
capture
The capture attribute in HTML instructs file upload input fields to utilize the device's camera or microphone for direct media capture instead of selecting files from storage.
cols
The cols attribute in the <textarea> element determines its visible width by specifying the number of characters displayed per line, although CSS is typically used for more flexible and customizable styling.