text align html p code example
Example 1: html how to center text
<p style="text-align:center;">Centered paragraph.</p>
Example 2: CODE TO START TEXT FROM RIGHT IN HTML
<html dir="rtl" lang="X">
<p style="text-align:center;">Centered paragraph.</p>
<html dir="rtl" lang="X">