---
title: P Align Attribute
localeTitle: P محاذاة السمة
---
## P محاذاة السمة

### مهم

هذه السمة غير مدعومة في HTML5. من المستحسن استخدام [خاصية CSS `text-align`](https://guide.freecodecamp.org/css/text-align) .

لمحاذاة النص داخل علامة `<p>` ، ستساعد هذه السمة.

### بناء الجملة

 `
<p align="position">Lorem Ipsum...</p> 
` 

### سمات

*   **يسار** - محاذاة النص إلى اليسار
*   **يمين** - محاذاة النص إلى اليمين
*   **مركز** - محاذاة النص إلى المركز
*   **ضبط** - جميع أسطر النص لها عرض متساوي

### مثال

 `
<html> 
 <body> 
 <p align="center">Paragraph align attribute example</p> 
 </body> 
 </html> 
` 

#### معلومات اكثر:

*   [CSS `text-align`](https://guide.freecodecamp.org/css/text-align)
*   [W3 - HTML 4.01 المواصفات](https://www.w3.org/TR/html401/struct/text.html#h-9.3.1)
*   [MDN - CSS Text Align](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align)