+ 4

What are Differences between <q> tag and using " " quotation marks in <p> tag instead?

I noticed <q> tag is used to insert quotation mark in HTML but one can also add "" quotation mark in <p> tag.Now I am confused what to use! Can you suggest the differences?

11th Oct 2017, 2:05 AM
Samir Phuyal
Samir Phuyal - avatar
4 Answers
+ 8
Yes both approaches would display the same visually. However as you might already know, <q> was used to display the quotation and it's specfically design for that and it's a semantic tag. You'll gain benefit by using the appropriate semantic tag for better SEO and easier to be parsed since the text wrapped inside carries semantic meaning instead of plain text. There's no good reason to use an axe to slice an apple when you have a knive as every tools are designed for specific purpose. 😉
11th Oct 2017, 2:31 AM
Zephyr Koo
Zephyr Koo - avatar
+ 3
<q> is an inline element while <p> is a block-level element. Take note. https://code.sololearn.com/WUWrSMiCq8v6/?ref=app
11th Oct 2017, 2:09 AM
👑 Prometheus 🇾🇬
👑 Prometheus 🇾🇬 - avatar
+ 1
And both mean same or it is not guys?
11th Oct 2017, 2:09 AM
Samir Phuyal
Samir Phuyal - avatar
0
q is quotation tag p is paragraph tag <q> add " sign to wrap your content. display as inline <p> display as block
11th Oct 2017, 7:50 AM
æž—ć‰é›„
æž—ć‰é›„ - avatar