+ 2

Why we use br to break a line

28th Feb 2018, 6:50 PM
Abhishek Shah
Abhishek Shah - avatar
2 Answers
+ 4
br is short for break. This is to help with the difference between your code in the editor and the output on your page itself. As you can imagine, if it was based solely upon how you typed things in your editor, the formatting would immediately be impacted by all of your markup. So we use <br> to break a line on our page because simply hitting enter in our editor isn't going to create that affect on the web page itself.
28th Feb 2018, 6:58 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 13
coz that's the tag to break line. it works as the enter key.. complete the course all this basic things are provided...
28th Feb 2018, 6:55 PM
🌛DT🌜 - avatar