I understand what the <pre>
and <code>
tags do.
However, I have the following questions:
- When should I use the
<pre>
and<code>
tags? - Is it a good practice to place the
<code>
tag inside the<pre>
tag?
I understand what the <pre>
and <code>
tags do.
However, I have the following questions:
<pre>
and <code>
tags?<code>
tag inside the <pre>
tag?I think you might find your answer in the documentation.
MDN Web Docs (mozilla.org)
There are accessibility issues with pre
mentioned, but it does suggest to use pre
and code
together for multiple lines of code
Thank you.
That was helpful.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.