A tag <q> é uma tag de cotação padrão e usada para citações curtas. O navegador normalmente insere uma aspa ao redor da citação. Para citações mais longas, a tag <blockquote> deve ser usada, pois é um elemento de nível de bloco. A tag <q> requer uma tag inicial e também uma tag final.
Sintaxe: 
 

<q> Contents... </q>

Os exemplos abaixo ilustram a tag <q> em HTML:
Exemplo 1: 
 

<html>
    <body>
         
<p>
          <!-- html q tag is used here -->
          <q>GeeksforGeeks</q>
            A computer science portal for geeks
        </p>
 
    </body>
</html>                   

Saída: 
 

Exemplo 2 (usar CSS na tag q): 
 

<html>
    <head>
        <title>q tag</title>
        <style>
            q {
                color: #00cc00;
                font-style: italic;
            }
        </style>
    </head>
    <body>
     
<p>
      <!-- html q tag is used here -->
      <q>GeeksforGeeks</q>
    A computer science portal for geeks
    </p>
  
    </body>
</html>

Saída: 
 

Navegadores Suportados: 
 

  • Google Chrome
  • Internet Explorer
  • Raposa de fogo
  • Ópera
  • Safári