English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
HTML p align Eigenschaft
Online-Beispiel
Beispiel <!DOCTYPE html> <html> <head> - <title>HTML:<p> align-Eigenschaft3codebox.com)</title> </head> <body> <p align="right">Ein rechter-ausgerichtetes Absatz.</p> <p align="left">Ein linker-ausgerichtetes Absatz.</p> </body> </html>Testen sehen ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the align attribute.
HTML5 The <p> align attribute is not supported. Please use CSS instead.
In HTML 4.01 In it, the align attribute of <p> is deprecated.
The align attribute specifies the alignment of the text in the paragraph.
In HTML 4.01 In it, the align attribute of <p> is deprecated, please use CSS instead.
CSS Syntax: <p style="text-align:right">
CSS Example: Align text in a paragraph
In our CSS tutorial, you can find more about text-align Attribute details.
<p align="left|right|center|justify">
Value | Description |
---|---|
left | Left align text. |
right | Right align text. |
center | Center align text. |
justify | Extend the line, so that each line can have equal width (as in newspapers and magazines). |