Why is there a / in the end of every command script? Ex. <p> Hello there! </p> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why is there a / in the end of every command script? Ex. <p> Hello there! </p>

31st Aug 2016, 11:31 AM
Meeko Studios
Meeko Studios - avatar
8 Answers
+ 3
the /element is used to close the opening of any tag.e.g <HTML> open tag, </HTML> closed tag.
31st Aug 2016, 11:48 AM
Marshal
+ 1
It is for the browser to recognize the end of a property i.e., your tag
1st Sep 2016, 4:37 PM
Pon Kumar
Pon Kumar - avatar
+ 1
Some tags work even without the close tag. The browser can recognize the end of a property. Ex. <html> does not need a close tag
1st Sep 2016, 4:39 PM
Pon Kumar
Pon Kumar - avatar
0
its like begin and end. This is the begin<p>, this is the end </p>. Every begin has an end ;). It is life's rule :)
31st Aug 2016, 9:53 PM
Can
Can - avatar
0
/ is used to end any tag in html..if you do not close the ending tag then it is the worst approach.if you don't use / then one tag will continue and whatever you write will reside in that tag
1st Sep 2016, 2:46 PM
M.Rashaf Jamil Khan
M.Rashaf Jamil Khan - avatar
0
that is really f
1st Sep 2016, 8:11 PM
samir abdujibar cade
samir abdujibar cade - avatar
0
basically der r 2 types of tags as u know 1) paired tags.....head,b,u,i, etc..... 2) unpaired tags.....Br,hr,.....etc
4th Sep 2016, 5:42 AM
sandeep velaga
sandeep velaga - avatar
0
it shows the ending of the paragraph when it comes to </p>.
11th Nov 2016, 12:03 AM
Ariel Leigh
Ariel Leigh - avatar