White Spaces

The white-space property is used to control the white spaces inside a block of text.

The values of white-space are.

ValuesDescription
normal
capitalizeReplaces the sequence of white spaces with a space character.
preWhite spaces are considered.
nowrapLine breaks are not considered.
inherit The property is inherited from the parent.


example
<style>
white-space : nowrap
white-space : pre
</style>

snippet
<html>
<head>
<style>
p {white-space:nowrap;}
div {white-space:pre}
</style>
</head>
<body>
<p>Sometimes you will never know the value of a Moment until it becomes a memory.</p>
<div>
Name Age Grade
Fernando 35 A
Michael 27 C
Abrahim 54 B
Yashva 22 A+
</div>
</body>
</html>