227k views
2 votes
When using HTML5 and typing text within the tags of a page, browsers will preserve and display all white space characters (spaces, tabs, newlines) as typed. True or false?

1 Answer

4 votes

Answer:

Hi!

The answer is false.

Explanation:

The browsers ignore tab indents, double-spaces, newlines, and another typographic formatting when using HTML5.

You can use the tag <pre> to preserve and display typographic formatting as typed.

Furthrmore:

  • For indent a text, you should use CSS.
  • For spaces, you should use &nbsp.
  • For newlines is commonly used the <div> tag.
User Ian Bjorhovde
by
5.4k points