html tutorial - cite Attribute in HTML - html5 - html code - html form

Cite attribute in html

Learn html - html tutorial - Cite attribute in html - html examples - html programs

  • The cite attribute is used to identify the online source of the quotation or why the text was inserted or changed.
  • The value of the cite attribute is not rendered on screen.
  • User agents may allow users to follow such citation links, but they are primarily intended for user-agent or search engines, not for readers.

Syntax for cite attribute in HTML:

<element cite=”URL”>

Applies To:

Elements Attribute
<blockquote> cite
<del> cite
<ins> cite
<q> cite

cite Attribute Values:

Value Description
URL Defines the address to the document.

Sample Coding for cite Attribute in HTML:

Tryit<!DOCTYPE html>
        <p>Wikitechy :
            <q cite="">
            Wikitechy is an enhanced tutorials zone providing the best 
            learning curve.
            </q><br>Sample code is provided for 
            each and every topic to improve the user's knowledge skills.

Code Explanation for cite Attribute in HTML:

cite Attribute Code Explanation

  1. <q> tag is used to define a short quote.
  2. The cite attribute value is, which contains the brief explanation about the quote.

Output for cite Attribute in HTML:

cite Attribute Output

  1. The content of the short quote is displayed, but the cite attribute value does not displayed, because that will be used to search engine or user-agent.

Browser Support for cite Attribute in HTML:

Yes Yes Yes Yes Yes

Tips and Notes

  • The cite attribute has no visible in normal web browsers, but it is used by screen readers.

Related Searches to cite Attribute in html