How to indent t...LOGIN

How to indent text

Example analysis:

#The text-indent attribute is used to specify the indent of the first line of text in the text block; negative values ​​are allowed, if If the value is negative, indent the first line to the left.

You can set the following values:

●length: Define a fixed indent. Default value: 0.​

● %: Defines the indent based on the percentage of the width of the parent element.

Next Section
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文网(php.cn)</title> <style> p {text-indent:50px;} </style> </head> <body> <p>In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. 'Whenever you feel like criticizing anyone,' he told me, 'just remember that all the people in this world haven't had the advantages that you've had.'</p> </body> </html>
submitReset Code
ChapterCourseware