q HTML element is used to represent an inline quote. Now regular quotes ("") can represent this just fine, surrounding the quote in the
q tag differs in that it explicitly indicates that the text is a quote, removing ambiguities that it could be emphasis, irony, etc.
In addition to explicitly stating that the text is a quote, it also provides a way to consistently style all quotes with minimal markup.
To use the
q element, surround the quote with the tag. Ensure you do not add quotes in addition to the
q tag or they will come through twice.
<p>Gandalf opened the doors to Moria by saying <q>Mellon</q>.</p>