By now you are quite familiar with the paragraph tag, we have used it often in the previous chapters. Paragraphs are defined with the
HTML Paragraph Example
<!DOCTYPE html> <html> <body> <p>This is an example using paragraph tag.</p> <p>This is another paragraph.</p> </body> </html>
HTML Line Break
<br> tag allows you to do a line break. This is very handy if you want a new line in a paragraph without starting a new paragraph.
HTML Line Break Example
<!DOCTYPE html> <html> <body> <p>This is a paragraph with line break<br>This is new line<br> in the same paragraph.</p> </body> </html>Try it yourself »
Please keep in mind that The
<br> element is an empty HTML element. It has no end tag.