When we can use <code>tag and <pre>?
<code> the tag is used for displaying the code inline and <pre> the tag is used if the system has to be presented as a standalone block element or if the law has multiple lines. While using the <pre> and <code> tags,unicode variants for the opening and closing tags − < and > should be used.
BY Best Interview Question ON 24 Jan 2019
Example
<code><header></code> wrapped as an inline element.
To display the code as a standalone block element use <pre> tag as:
<pre> <article> <h1>The Article Heading</h1> </article> </pre>