is it correct to write <hr width="50px" align="center" /> ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

is it correct to write <hr width="50px" align="center" /> ?

7th Dec 2015, 8:01 PM
Felix Di (Hakiemi)
Felix Di (Hakiemi) - avatar
7 Answers
+ 1
Yes. It would give you a horizontal line that would be 50 pixels long and be aligned to the center of the page.
28th Mar 2016, 9:56 AM
Daniel Chukwuji
Daniel Chukwuji - avatar
+ 1
correctly
28th May 2016, 12:13 PM
Максим Анашкин
Максим Анашкин - avatar
0
HTML <hr> Tag Differences Between HTML 4.01 and HTML5 In HTML5, the <hr> tag defines a thematic break. In HTML 4.01, the <hr> tag represents a horizontal rule. However, the <hr> tag may still be displayed as a horizontal rule in visual browsers, but is now defined in semantic terms, rather than presentational terms. All the attributes are removed in HTML5. Use CSS instead. Source: http://www.w3schools.com/tags/tag_hr.asp
4th Apr 2015, 7:06 AM
Eric
Eric - avatar
0
yes
28th May 2016, 8:56 AM
Dwij Sukeshkumar Sheth
Dwij Sukeshkumar Sheth - avatar
0
да
28th May 2016, 11:55 AM
Pavel Fadeev
Pavel Fadeev - avatar
- 1
No, it's wrong, according to w3schools, br tag supports global attributes only.. Source: http://www.w3schools.com/tags/tag_br.asp
19th Dec 2015, 2:47 PM
Ahmed Lo'ay
Ahmed Lo'ay - avatar
- 1
no ! :-))))) This tag is to place a breakline which doesn't have any kind of measurememt...
13th Jan 2016, 11:29 AM
Ali
Ali - avatar