When will you use <code>tag and <pre>tag?

When will you use tag and


In HTML, “code” tag is used to add code of line in the web page. The codes can be HTML, CSS lines of code. “pre” tag is used to indicate pre-formatted text. It will add texts in the page with whitespace in tact.