+ 1

What does <br> </br> represent?

I'm BRAND NEW to coding. Entirely. So, are <br> and </br> (respectivly) used to open and close individual lines of text or more like to represent the opening and closing of new paragraphs within the body? Thanks for any clarity.

12th Jul 2018, 5:31 AM
Daniel McEachrin III
2 ответов
+ 3
Hello, Daniel McEachrin III ! The tag <br/> sets the line break to the place where this tag is located. Unlike the paragraph tag <p>, using the <br/> tag does not add an empty indent before the line. If the text that uses the line feed wraps around the floating element, you can use the clear attribute of the <br/> tag to make the next line start below the element. https://www.sololearn.com/learn/HTML/1028/?ref=app
12th Jul 2018, 5:39 AM
Alexander Sokolov
Alexander Sokolov - avatar
0
br is special. It doesn't need a closing tag, because nothing can go inside. But for old browsers, you should put a slash at the end of the tag. So write this, and that's all. <br/> This simply starts a new line.
12th Jul 2018, 5:32 AM
James
James - avatar