What is a <pre> tag?
Experience Level: Junior
Tags: HTML
Answer
<pre>
tag indicate browser, in appears on HTML. Figure element was design to contain code examples. It is often paired with the <code>
tag.
Best practices when displaying code:
- Large box into small
- Aim for clarity
- Comments to indicate why
- Avoid complexity
Related HTML job interview questions
What is <img> tag and how is it used?
HTML JuniorWhat is a <form> tag?
HTML JuniorWhat is a <code> tag?
HTML JuniorWhat is a <body> tag?
HTML JuniorWhat is a <html> tag?
HTML Junior