Home >Web Front-end >HTML Tutorial >Create a right-to-left paragraph in HTML5
Use the dir attribute in HTML to set a right-to-left paragraph. Add the rtl value to the dir attribute so that the text flows from right to left.
You can try running the following code to implement the dir attribute:
<!DOCTYPE html> <html> <body> <p dir="rtl">This is demo paragraph. This is demo paragraph. This is demo paragraph. This is demo paragraph. This is demo paragraph. This is demo paragraph. This is demo paragraph.</p> </body> </html>
The above is the detailed content of Create a right-to-left paragraph in HTML5. For more information, please follow other related articles on the PHP Chinese website!