← All tutorials

GoCareerGo Tutorials

HTML Tutorial

Tags, attributes, HTML5 APIs and semantic markup — the web's foundation.

<pre> Tag

Preformatted text that preserves whitespace.

Quick-reference summary — a full handcrafted walkthrough is coming soon for this topic.

Preformatted text that preserves whitespace.

  • Category: HTML Tags List — part of the HTML Tutorial on GoCareerGo
  • Read the short summary above, then check the linked docs for full syntax/behaviour
  • Interview tip: be ready to explain "<pre> Tag" in one sentence, then back it up with a tiny example
<!-- pre Tag -->
<div>
  <!-- see MDN for the full attribute/tag reference -->
</div>
Tip

Quick recall: "<pre> Tag" — preformatted text that preserves whitespace.