

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Create a paragraph with a right-to-left direction in HTML5
Use the dir attribute in HTML to set a paragraph with right-to-left direction. Add the value rtl to the dir attribute for the text to be placed from right-to-left.
Example
You can try to run the following code to implement 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>
- Related Questions & Answers
- Create a draggable paragraph in HTML5
- Create a hidden paragraph in HTML5
- How to create a left-right split pane in Java?
- How to create a navigation bar with left-aligned and right-aligned links with CSS?
- How to detect swipe direction between left/right and up/down in Android?
- Print a matrix in alternate manner (left to right then right to left) in C++
- Create Left to Right slide animation in Android?
- How to Create LEFT-RIGHT Alignment of Containers with CSS Flex
- How to create a Box to display components from left to right in Java
- Create a pattern with HTML5 Canvas
- How to detect swipe direction between left/right and up/down in Android using Kotlin?
- How to create a transformation matrix with HTML5?
- Create Left to Right slide animation in Android using Kotlin.
- Add some emphasis to a paragraph with Bootstrap
- CSS3 Left to right Gradient
Advertisements