What is hr align | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is hr align

14th Feb 2017, 12:02 PM
neena sharma
neena sharma - avatar
3 Answers
+ 4
<hr> was originally standing for Horizintal Rule. In Html5 <hr> is mainly a content separator, semantically... It's still styled as horizontal line for ascending compatibility reasons, but this may change in future. ... And 'align' was a deprecated attribut, intended to be replaced with css rules ( by setting a ad-hoc text-align property on its container ).
14th Feb 2017, 2:04 PM
visph
visph - avatar
+ 1
hr stands for horizontal line and by default it creates a horizontal line with a width of 100% across your page. If you specify a width for the hr tag that is less than 100%, e.g 50%, then it will be default be aligned left. this is where align comes into play. You can then set align to right if you want the hr to be right of the screen.
14th Feb 2017, 12:53 PM
Ghauth Christians
Ghauth Christians - avatar
+ 1
the <hr> tag is a horizontal line and has a width of 100% across your page the <hr align=""> using this tag you will be able to shorten the line if you want to put i the left or just right Keep Practacing
14th Feb 2017, 1:02 PM
Din Spataj
Din Spataj - avatar