Tag in HTML

HTML Stands for Hypertext Markup Language. We also call it the backbone of the internet. It is one of the markup languages which is used to create web pages and applications. One of HTML’s most essential and powerful features is the <br> tag. With the help of this tag, we can provide a line between a paragraph. In this article, we will learn all the details about <br> tag.

When we write an article in MS Word, the cursor will move to the next time we press enter key. In HTML, when we write any paragraph and need one line of space, we go for <br> tag.

Examples of <br> Tag

Example 1: Let’s take an example and write a poem without giving <br> tag and what we get in the output.

<!DOCTYPE html>  

<html lang="en">  

<head>  

 <meta charset="UTF-8">  

 <meta name="viewport" content="width=device-width, initial-scale=1.0">  

 <title>Document</title>  

</head>  

<body>  

 <h2>Welcome To JavaTPoint</h2>  

 <div>  

  Hold fast to dreams  

  For if dreams die  

  Life is a broken-winged bird  

  That cannot fly  

  

  Hold fast to dreams  

  For when dreams go  

  Life is a barren field  

  Frozen with snow  

 </div>  

</body>  

</html>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *