DEV Community

aronsantha
aronsantha

Posted on • Updated on

> Remove formatting for test data

Use <pre> tags during development to print data with unformatted text. It will:

  • display a fixed-width font, and
  • preserve spaces and line breaks.

FYI, most browsers use these styles to format <pre> tags:

  display: block;
  font-family: monospace;
  white-space: pre;
  margin-top: 1em;
  margin-bottom: 1em;
Enter fullscreen mode Exit fullscreen mode

Top comments (0)