Whats the purpose of the <q> element? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Whats the purpose of the <q> element?

I get it that it makes the quotation symbols, however, I can still just write <p> "hello world" </p> without any problem.

23rd Jul 2020, 10:21 PM
Karak10
Karak10 - avatar
1 Answer
+ 4
It's used to define an inline quote in your content, semantically it's used for very short quotes, when you want to define a long quote you should use <blockquote> Remember HTML is not only put text and content into a document some tags have semantic meaning.
23rd Jul 2020, 10:36 PM
Erick Ventura
Erick Ventura - avatar