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?

14th May 2018, 6:03 AM
Alexa
Alexa - avatar
2 Respuestas
+ 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>
14th May 2018, 6:10 AM
Rahul George
Rahul George - avatar
+ 1
Oh yes, you are right. Many thanks
14th May 2018, 6:17 AM
Alexa
Alexa - avatar