q tag in HTML
In this article, we will see what q tag is in HTML.
<q> tag
It is paired tag in HTML, so we put opening and closing <q> tags. It is used to create double quotes for the texts. If we put some text inside the <q> tag, the text will be displayed with double quotes (” “). When creating a website for a big project, we cannot put all the words separately in double quotes, so we can easily create double quotes using this <q> tag. In HTML5 is introduced the <q> tag.
syntax:
<q>..some text...</q>
Example code:
<q> DO OR DIE </q>
Output:
Steps:
- If you want to add double quotes to texts, you need to give “<q> opening tag” first.
- Then you need to put the texts you want to put in double quotes.
- Finally, you should give “</q> closing tag”.