Home > Article > Web Front-end > How to set two spaces in a paragraph in Html
In HTML, you can use the text-indent attribute to set two spaces in a paragraph. You only need to set the "text-indent:2em;" style to the element. The text-indent attribute specifies the indentation of the first line of text in the text block. This attribute allows negative values; if a negative value is used, the first line will be indented to the left.
Open the HBuilder editing tool, enter the editing page, and create a new static page;
##Use classes The selector sets the display attribute of the div tag to box, Then add the text-indent attribute to the article "container" style, for example:<div style="max-width:90%">你的文章内容!</div>。#Then you can define 2 spaces at the beginning of each paragraph. Recommended learning:
The above is the detailed content of How to set two spaces in a paragraph in Html. For more information, please follow other related articles on the PHP Chinese website!