+ 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?
4 Antworten
+ 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. 😉
+ 3
<q> is an inline element while <p> is a block-level element. Take note.
https://code.sololearn.com/WUWrSMiCq8v6/?ref=app
+ 1
And both mean same or it is not guys?
0
q is quotation tag
p is paragraph tag
<q>
add " sign to wrap your content.
display as inline
<p>
display as block