+ 20
Why is it that when there are no lines, the terms are redone, and do not go below each other?
2 Answers
+ 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>
+ 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.