What is the white-space property in CSS?
White-space is a property within CSS which helps in controlling whitespace and other line breaks inside an element’s text. It has a default value of normal.
Here’s an example to display the different values within a white-space property:
p.e {
white-space: nowrap;
}
p.f {
white-space: normal;
}
p.g {
white-space: pre;
}
BY Best Interview Question ON 11 Mar 2020