Home  >  Article  >  Web Front-end  >  What are the space symbols in html?

What are the space symbols in html?

王林
王林forward
2020-12-21 09:44:174636browse

What are the space symbols in html?

Space symbols in html:

(Learning video sharing: html video tutorial)

What are the space symbols in html?

Spaces in css:

When the value of the white-space attribute in CSS is pre, the browser will retain the spaces and line breaks in the text, for example:

<div style="white-space:pre">AA   BB<div>

Display effect For: AA BB

The letter-spacing property of CSS is used to set the spacing between characters in the text, for example:

<div style="letter-spacing:5px;">欢迎光临!</div>

The display effect is: Welcome Guanglin!

The word-spacing property of CSS is used to set the spacing between words in the text, for example:

<div style="word-spacing:5px">Happy new year!</div>

The display effect is: Happy new year!

html Commonly used symbols in:

What are the space symbols in html?

Related recommendations: html tutorial

The above is the detailed content of What are the space symbols in html?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete
Previous article:What is html inputNext article:What is html input