p_align.aspx font size:

<html>
<head>
<title>Abakada HTML Demo: P align Attribute</title>
<link rel="stylesheet" href="/shared/netdemos.css">

<style type="text/css">
<!--
   button { padding: 2 5 }
-->
</style>
</head>

<body>
<!-- #include virtual="~/shared/top.inc" -->

<div class="header"><h2>Abakada HTML Demo: <span class="hilite">P align Attribute</span></h2></div>
<hr size=1 width=92%>

<center>

<h5>This example shows the effects of applying different values possible for the <b>align</b> attribute, 
   when used with the <b>P</b> element.</h5>

<div style="width:60%" align=center>

<p id="msg">The <b>align</b> attribute is used to specify, among others, the horizontal alignment of text content in a paragraph. Possible values are <i>left</i>, <i>center</i>, <i>right</i> and <i>justify</i>. While the <b>align</b> attribute on <b>&lt;p&gt;</b> tags has been deprecated in favor of CSS styles in HTML 5, some browsers still support it as evidenced by this example. </p>

</div>

<p>Click a button to change the paragraph's alignment.

<h5 id="syntax">&lt;p align=&quot;center&quot;&gt;</h5>

<table>
<tr>
<th>Options </th>
<td>
   <button onclick="setAlign ( 'left' )">left</button>
   <button onclick="setAlign ( 'center' )">center</button>
   <button onclick="setAlign ( 'right' )">right</button>
   <button onclick="setAlign ( 'justify' )">justify</button>
</td></tr>
</table>

<script language="JavaScript">
<!--
var el = document.getElementById ( 'msg' );
var synt = document.getElementById ( 'syntax' );

function setAlign ( opt ) {
   el.align = opt;
   txt = '<p align="' + el.align + '">';
   synt.childNodes [ 0 ].nodeValue = txt;
}
//-->
</script>

</center>

<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->

</body>
</html>