When writing a paper using a pencil or pen, whitespace is a key aspect of
formatting. When you start to learn how to write papers using a computer, the
concept of layout really changes. Some aspects get easier, but other aspects
become more difficult (for example it can be harder to make it look the way you
want it to look).
When it comes to the web, HTML is the main presentation markup language, and
it’s primarily designed for computer consumption, not human consumption. This
means that you don’t control layout via spacing, like you would with a pencil
on paper.
Is whitespace then used in HTML? The answer is yes. While HTML is intended
for computers to read, it’s often written by humans, and humans need more help
to be able to understand it. That’s where whitespace comes in.
So we now that browsers largely ignore whitespace, but humans really benefit
from it when used correctly. For example, below are two examples of a
defective html list. It’s defective because one of the list elements is
missing it’s closing tag. In which of the two examples that follow, is this
defect easier to see?
Pictures are much more fun than whitespace. So how to pictures work on a
webpage? Read through the
reference
on how to use images. Be sure to note the following things: