Learn HTML part 11

The Align Attribute

The Align Attribute used to specify how the text is aligned.
In the example below, we have paragraph that is aligned to the center, and a line that is aligned to the right.
For example 
<html>
<head>
<title> First paragraph <>
</title>
</head>
<body>
<p align="center" > This is my first paragraph 
<br />
<hr width ="10%" align="right" />
This is my second paragraph 
</p>
</body>
</html>

Result 


Post a Comment

0 Comments