What does br mean in html


The br is a tag in Html. Html <br> tag is used to break the line of text. This tag is useful when users have to write the poem, address, and code samples.

The <br> tag is an empty tag or unpair tag, i.e., there is no need to close this tag. But in the code of XHTML, we have to close the <br> tag.

We can easily understand the br tag by an example. So, we will provide the following two examples.

Example 1: This example shows the code of how to use <br> tag in the poem for link break.

<!Doctype Html>  
<Html>     
<Head>      
<Title>     
Example: how to use <br> tag in poem  
</Title>  
</Head>  
<Body bgcolor="red">   
Hello User!...  
<center>  
Poem   
<br> <br>  
<font color="blue">  
Hold fast to dreams <br>      
For if dreams die <br>    
Life is a broken-winged bird <br>    
That cannot fly. <br>    
Hold fast to dreams <br>      
For when dreams go <br>      
Life is a barren field <br>      
Frozen with snow. <br>    
</center>  
</Body>   
</Html>  

The output of above Html code is shown in the following screenshot:

What does br mean in html

Example 2: This example shows the code of how to use <br> tag in the code samples for a line break.

<!Doctype Html>  
<Html>     
<Head>      
<Title>     
Example: how to use <br> tag in code sample  
</Title>  
</Head>  
<Body bgcolor="orange">   
Hello User!...  
<center>  
Code for add two number  
<br> <br>  
<font color=" blue">  
int main() <br>   
{ <br>  
int x, y, z; <br>  
printf("Enter two numbers to add\n"); <br>  
scanf("%d%d", &x, &y);<br>  
printf("Sum of the numbers = %d\n", z);<br>  
}<br>  
</center>  
</Body>   
</Html>  

The output of above Html code is shown in the following screenshot:

What does br mean in html

Leave a Reply

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