- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
HTML cite Attribute
The cite attribute of the <blockquote> element is used to set the source of a quotation.
Following is the syntax −
<blockquote cite="url">
Above, url is the source of the quotation. Let us now see an example to implement the cite attribute of the <blockquote> element −
Example
<!DOCTYPE html> <html> <body> <h2>Magento</h2> <p>Magento as stated on the official website:</p> <blockquote cite="https://magento.com/products"> Magento Commerce, part of Adobe Commerce Cloud, offers a one-of-a-kind eCommerce solution with enterprise power, unlimited scalability, and open-source flexibility for B2C and B2B experiences. Magento allows you to create unique, full-lifecycle customer experiences proven to generate more sales. </blockquote> </body> </html>
Output
In the above example, we have set a quote using the <blockquote> text −
<blockquote cite="https://magento.com/products"> Magento Commerce, part of Adobe Commerce Cloud, offers a one-of-a-kind eCommerce solution with enterprise power, unlimited scalability, and open-source flexibility for B2C and B2B experiences. Magento allows you to create unique, full-lifecycle customer experiences proven to generate more sales. </blockquote>
The source of the quotation is set using the cite attribute −
cite="https://magento.com/products"
Advertisements