Hello Coders, In this blog post, you will learn to add quotes in HTML. We will add quotes using q and blockquote tags in Html. Quotes are used to highlight some specific words or text blocks in the html. Let us learn both tags separately in detail:-
![Quotes](https://codeblockx.com/wp-content/uploads/2023/02/codeblockx-43-768x432.png)
Ways to add Quotes:-
q tag
The q tag is used to set the text in quotation marks. This tag is usually used for shorter text. It has both Opening <q> and Closing </q> tags. The code for q tag is as follows:-
OUTPUT
![](https://codeblockx.com/wp-content/uploads/2023/02/Screenshot_20230219_094914-768x359.png)
Blockquote Tag
The blockquote tag is used to put sections in quotes text. Instead of putting text in quotes, it puts a large space at the start of the text. It is mostly used for Long text or paragraphs. It has both opening <blockquote> and closing </blockquote> tags. The code for this is as follows:-
OUTPUT
![blockQuote in html](https://codeblockx.com/wp-content/uploads/2023/02/Screenshot_20230219_094927-768x354.png)
Hope this Blog was helpful to you and you have got the answer to your question. Thank you for visiting our blog. If you have any doubts about the coding questions then let us know in the comments section we will answer them as soon as possible. Till then explore some more question in html.