To show programming code, use the <code> tag on your HTML page.
Syntax:
<code>
// content
</code>
Using this <code> tag we can show programming code as it is on an HTML page. <code> tag also has its corresponding </code> tag.
Refer to the video to understand clearly: