May 29, 2021 Article blog
HTML is one of the most familiar front-end technologies, and there are many types of space characters for HTML, so let's take a look at this article.
The most basic space symbol is
I believe everyone knows, then you know half a space, narrow space how to play?
name | description |
| Blank lines (one character width) |
  | Half blank (1 character width) |
  | One blank (2 character width) |
  | Narrow white space (less than 1 character width) |
In CSS, the
white-space
property is pre, and the browser retains spaces and line breaks for the text.
example:
<div style="white-space:pre">Hello World<div>
It appears as Hello World
The
letter-spacing
property in CSS is also used to set the interval for text characters.
example:
<div style="letter-spacing:5px;">牛年大吉!</div>
Its display effect is: the year of the cow big gee!
The
word-spacing
property in CSS is used to set the interval between text words.
example:
<div style="word-spacing:5px">Happy new year</div>
The display effect is: Happy new year.
These are all the things that programmers can do to write a perfect resume, and you want to learn more clickable:
CSS micro-classes,
HTML-CSS basic combat