0
Why is text on left side although align="right"?
In the example of align lesson there is after new line (br-tag) align="right". When compiled, text is showing on left side. Shouldn't it be on right side?
2 Answers
+ 3
I suppose this Is the lesson code that you're taking about.
Well, the <align = "right"> attribute value has been assigned to the <hr> tag, and not to the <p> tag ( which is aligned to the centre ).
Code:
<html>
<head>
<title>Attributes</title>
</head>
<body>
<p align="center">This is a text <br />
<hr width="10%" align="right" /> This is also a text.
</p>
</body>
</html>
+ 1
Oh yes, you are right. Many thanks