+ 12

What is the difference between </br> and <br/>in html

7th Jul 2019, 10:34 AM
Shruti Maitri
12 Réponses
+ 13
</br> doesn't give any sense! It has no meaning! <br> is a self closing tag. So, </br> is not necessary! ☺
7th Jul 2019, 10:41 AM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
+ 14
No difference! Better if you use <br/> because, <br> is error in XHTML!
7th Jul 2019, 10:36 AM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
+ 6
I know what you mean but br tag dont have closing tag like its optional bro so you have to just use one tag means <br> this tag but some versions like XHTML supports <br /> so thats why it is a good practise to use / in your codes so therefore we just use this symbol to /> if you give it first like </br> this your opening tag will be hidden there is only closing tag you see there so for browser an opening tag is more important therefore we use <br> <br /> tag to show as an opening tag because we have optional closing tag in html or XHTML..... :)
8th Jul 2019, 5:21 AM
Sayyam Jain
Sayyam Jain - avatar
+ 6
<br> html <br/> XHTML or html Used always <br/>
22nd Aug 2019, 1:51 AM
Suraj Web
Suraj Web - avatar
+ 5
<br> no I'm asking </br> and <br/>
7th Jul 2019, 10:36 AM
Shruti Maitri
+ 5
OK thanks bro😊😊
7th Jul 2019, 11:00 AM
Shruti Maitri
+ 3
</br> is not a real tag... <br/> is a real tag... The <br> tag inserts a single line break. https://www.w3schools.com/tags/tag_br.asp
7th Jul 2019, 11:09 AM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
+ 3
</br> doesn't make sense.
7th Jul 2019, 2:26 PM
ram roop Passionate to Learn Coding
ram roop Passionate to Learn Coding - avatar
+ 3
In earlier versions of HTML, this tag <br/> could be read , but this entry is outdated!<br/> - this is a mistake that will be ignored by HTML5 There is a <br /> tag in the XHTML specification.
8th Jul 2019, 6:17 PM
Gregory Kadaner
Gregory Kadaner - avatar
+ 2
<br> is a normal HTML tag which means break while <br/> is also break while coding in XHTML
18th Jul 2019, 12:33 AM
Sarmhard{!°rd of ©°d€}
Sarmhard{!°rd of ©°d€} - avatar
+ 1
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <!-- Responsive --> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <!-- jQuery --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!-- JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> </body> </html>
9th Jul 2019, 2:07 PM
Abhishek Jangir
Abhishek Jangir - avatar
- 3
You can use both <br> | <br/> but I would recommand to use <br>
8th Jul 2019, 12:13 PM
Maximilien Bernede
Maximilien Bernede - avatar