
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
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 Articles
- Create a draggable paragraph in HTML5
- Create a hidden paragraph in HTML5
- How to define a 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 create a transformation matrix with HTML5?
- Create a pattern with HTML5 Canvas
- How to create a link with media attribute in HTML5
- 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
- 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 using Kotlin.
- Add some emphasis to a paragraph with Bootstrap

Advertisements