Sunday, 20 March 2016

Left, right, Center Align In HTML

 Right Align in web Page

<html>
<body>
<h1 style="text-align:right;">Right-aligned heading</h1>
<p>This is a example of Right aligned.</p>
</body>
</html>


 OUTPUT

Right-aligned heading

This is a example of Right aligned.


Center align in HTML
<html>
<body>
<h1 style="text-align:right;">Center-aligned heading</h1>
<p>This is a example of Center aligned.</p>
</body>
</html>


OUTPUT

Center-aligned heading

This is a example of Right aligned.

 Center align in HTML
<html>
<body>
<h1 style="text-align:right;">Left-aligned heading</h1>
<p>This is a example of Left aligned. But You can change any name</p>
</body>
</html>

OUTPUT 
Left-aligned heading
This is a example of Right aligned.
Note:- I used all example heading tag and left, right, and center align
Previous Page 
Next page

No comments:

Post a Comment