بررسی تگ پاراگراف

به نام خدا . در اين قسمت سعي داريم تا ايت تگ را مورد بررسي خود قرار دهيم . تقريبا براي هر متني نياز داريم تا از پاراگراف استفاده كنيم . اين تگ به علت استفاده راحت و سادگي كار با آن هميشه مورد علاقه افراد تازه كار است .
هنگامي كه از تگ <p> استفاده مي كنيم ، مرورگر يك خط خالي در بالا و پائين تگ ما در نظر مي گيرد. براي درك بيشتر اين مسئله من يك نمونه را به شما نمايش مي دهم كه از دو تگ <p> استفاده شده است و همانطوري كه ملاحضه خواهيد كرد . شاهد يك خط خالي قبل و بعد هر پاراگراف هستيد .


 ----1:::::People with documents in their hands look like hardworking employees heading for important meetings. People with nothing in their hands look like they're heading for the cafeteria. People with a newspaper in their hand look like they're heading for the toilet. Above all, make sure you carry loads of stuff home with you at night, thus generating the false impression that you work longer hours than you do. 

 ----2:::::People with documents in their hands look like hardworking employees heading for important meetings. People with nothing in their hands look like they're heading for the cafeteria. People with a newspaper in their hand look like they're heading for the toilet. Above all, make sure you carry loads of stuff home with you at night, thus generating the false impression that you work longer hours than you do. 

براي ديدن نتيجه كار برروي لينك روبرو كليك كنيد .

People with documents in their hands look like hardworking employees heading for important meetings. People with nothing in their hands look like they're heading for the cafeteria. People with a newspaper in their hand look like they're heading for the toilet. Above all, make sure you carry loads of stuff home with you at night, thus generating the false impression that you work longer hours than you do.

براي ديدن نتيجه كار برروي لينك روبرو كليك كنيد . :: نتيجه ::

در ادامه من دو option ديگر Align را مورد بررسي قرار داده ام . ( در تعريف option مي توان گفت به هر مقداري كه براي يك خوصيصت در نظر گرفته مي شود. اين مقدار مي تواند توسط كاربر و يا مقادير پيش فرض باشد )
نمايش پاراگراف در مركز
با استفاده از center كه يكي از option هاي Align است مي توانيد متن را در وسط صفحه تزاز كنيد .

People with documents in their hands look like hardworking employees heading for important meetings. People with nothing in their hands look like they're heading for the cafeteria. People with a newspaper in their hand look like they're heading for the toilet. Above all, make sure you carry loads of stuff home with you at night, thus generating the false impression that you work longer hours than you do.

براي ديدن نتيجه كار برروي لينك روبرو كليك كنيد . :: نتيجه ::

نمايش پاراگراف با تراز از سمت راست
با استفاده از right مي توانيد متن خود را با توجه به حاشيه در نظر گرفته شده تراز كنيد .

People with documents in their hands look like hardworking employees heading for important meetings. People with nothing in their hands look like they're heading for the cafeteria. People with a newspaper in their hand look like they're heading for the toilet. Above all, make sure you carry loads of stuff home with you at night, thus generating the false impression that you work longer hours than you do.

براي ديدن نتيجه كار برروي لينك روبرو كليك كنيد . :: نتيجه ::

نكته اي در مورد تگ P :
در اين تگ چنانچه شما از يك فاصله بيشتر در متن خود استفاده كرده باشيد . يكي بيشتر محاسبه نمي شود .


 People with documents in their hands look like hardworking employees heading for important meetings. 

براي رفع چنين مشكلي شما مي توانيد از كد &nbsp; بهره بريد كه باعث نمايش يك فاصله خالي مي شود .
اين مسئله براي خطوط نيز صدق مي كند . يعني اگر شما يك فاصله خالي مابين خطوط خود در اين تگ ايجاد كنيد محاسبه نخواهد شد . ( در مورد رفع اين مشكل در بخشي ديگر به طور خاص به موضوع پرداخته خواهد شد ). البته اين دو نكته براي اكثر تگ ها يكسان است اما در مورد چند تگ نيز صدق نمي كند.

People with documents in their hands look like hardworking employees heading for important meetings.
People with documents in their hands look like hardworking employees heading for important meetings.
People with documents in their hands look like hardworking employees heading for important meetings.
People with documents in their hands look like hardworking employees heading for important meetings.

درباره amin amanpour