HTML Quotations

HTML Quotations

12 May 2023
Advanced
517 Views
1 min read
Learn via Video Course & by Doing Hands-on Labs

HTML For Beginners Free Course

HTML Quotations

The HTML Quotations creates quotations in HTML. The <q> tag defines a short quotation. It is a block-level element and HTML <blockquote> tag defines a section that is quoted from another source. It is also a block-level element.

Syntax

Following is the syntax −

<q>quote</q>

Or

<blockquote>quote</blockquote>

Example

Let us see an example of HTML Quotations −

<!DOCTYPE html>
<html>
<head>
 <title>Quotations</title>
</head>
<body>
 <h3>ScholarHats</h3>
<p>We are learning HTML Quotations<br></p>
 <!--Inside quotes-->
<p><q>We are going to learn even more</q></p>
</body>
</html>

Output

Summary

In HTML, quotations are used to indicate quoted or attributed text within an HTML document. This article helps us to learn what are HTML Quotations and how we can use it.

Take our free html skill challenge to evaluate your skill

In less than 5 minutes, with our skill challenge, you can identify your knowledge gaps and strengths in a given skill.

GET CHALLENGE

Share Article
Batches Schedule
About Author
Sakshi Dhameja (Author and Mentor)

She is passionate about different technologies like JavaScript, React, HTML, CSS, Node.js etc. and likes to share knowledge with the developer community. She holds strong learning skills in keeping herself updated with the changing technologies in her area as well as other technologies like Core Java, Python and Cloud.

Self-paced Membership
  • 22+ Courses
  • 750+ Hands-On Labs
  • 300+ Quick Notes
  • 55+ Skill Tests
  • 45+ Interview Q&A
  • 10+ Real-world Projects
  • Career Coaching
  • Email Support
Upto 66% OFF
KNOW MORE..

To get full access to all courses

Accept cookies & close this