Inserting Spaces in HTML
This post was translated from Chinese by AI. If anything reads oddly, the Chinese original is authoritative. 中文原文
In normal text input, HTML displays only one space, no matter how many times you press the space bar. To insert multiple spaces, use or space placeholders. Spaces of different widths: is the width of two regular spaces, and is the width of four regular spaces. Using CSS, insert in between. To add a paragraph to the body of an HTML document, insert the following in the tag:
To adjust the indentation, simply change the number 1.8 in the CSS rule. Use non-breaking spaces to simulate a tab.
Spaces or line breaks inserted inside the tag will be displayed as spaces or newlines
Can be used to create multiple blank lines
Last updated 2024-01-14
Comments 0