Junior
What is the <q> tag used for in HTML?
sobes.tech AI
Answer from AI
The <q> tag is used to highlight short quotes within the text. Browsers typically enclose the content of <q> in quotation marks.
<p>The document states: <q>All human beings are born free and equal in dignity and rights.</q> This is a fundamental principle.</p>
Additionally, the cite attribute can be used to specify the source of the quote, but browsers do not visually display it. It is intended for machine processing.
<p>According to the expert, <q cite="https://example.com/article/123">the market shows signs of recovery.</q></p>
For longer quotes that include multiple paragraphs or blocks, the <blockquote> tag should be used.