+ 20

Why is it that when there are no lines, the terms are redone, and do not go below each other?

https://code.sololearn.com/Wk8YmeSuC1y1/?ref=app

28th Apr 2018, 4:28 PM
Vučko/Вучко/Vuchko
Vučko/Вучко/Vuchko - avatar
2 Réponses
+ 3
Try This One with li opening tag <html> <head> <title>first page</title> </head> <body> <ul> <li>Red</li> <li>Blue</li> <li>Green</li> </ul> </body> </html>
17th Aug 2018, 8:33 PM
Amir Ahmad
Amir Ahmad - avatar
+ 2
Explanation: it's because the words you included are actually inside the <ul> tag not inside there corresponding <li> tags, you might have typed the end part of the <li> tags, but without the opening part the <li> tags are treated as if they are not even there. solution: if you want the words to go below each other then put them in their corresponding <li> tags inside the <ul> tag like this: <ul> <li><!-- content --></li> </ul> note: the <hr /> tag is actually a block level element that's why when present in your code some words go down the line. recommendation: for more info about tags and block level elements i recommend the HTML course here at Sololearn.
28th Apr 2018, 4:35 PM
Ryan
Ryan - avatar