FAQ: Learn HTML - Intro to HTML - Line Breaks

Hi, I’m also stuck on this part, I don’t understand why it only works when there are two line breaks

but not just one or like in the exemple when there are several at different places in the text.
Thanks in advance.

Thank you for answer

Why does the line break function not have a closing tag like all the other functions?

Hey, @net2609694609 welcome to the forums.

The <br> tag does not have a closing tag since it is self-closing. Self-closing tags don’t need a closing tag since there are no contents that would go in the tag. Other than the <br> tag the image tag is also self-closing since it only uses attributes.

1 Like

OHH okay,I get it now. Thank you so so much. I’m having so much fun with this.

1 Like