In the paragraph tag, we let the web browser automatically start a new line.
However we may want to manually add extra lines and spacing time to time
Line break tags are versatile and easy to use as it doesn’t require you to insert an opening and closing tag, a simple <br> wherever you want to add an extra line does the trick.
We can drop them anywhere we want to break line or space out elements. To illustrate in a real example, check this following example:
For a HTML line break, you use the <br> tag.
Here’s an example of adding a space within a paragraph.
So you do not need to start a new paragraph just to get a new line.
The line break <br> tag does not have a closing tag, it is just a simple <br> wherever you want a line break.
<!DOCTYPE html> <html> <head> <!-- This is the stylesheet John created in 2020 --> <link rel="stylesheet" href="/file/stylesheet.css"> </head> <body> <p>Welcome to my webpage and paragraph 1.</p> <p>I have so much to say <br> I'm going to need a lot of paragraphs!</p> </body> </html>
Welcome to my webpage and paragraph 1.
I have so much to say
I’m going to need a lot of paragraphs!