What will happen if I will open the tags and write the program but I will not close the tags in html . | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What will happen if I will open the tags and write the program but I will not close the tags in html .

10th Nov 2018, 12:33 PM
Surya Tudu
Surya Tudu - avatar
3 Answers
+ 6
Different possibilities are there. If you will not close head tag, nothing will be displayed on the browser. If you don't close body tag, you may not find any affect. If you don't close tags inside body, it can result in several scenarios.
10th Nov 2018, 12:37 PM
Arushi Singhania
Arushi Singhania - avatar
+ 5
Surya Tudu You will face problems when you will apply style to paragraph tag.
10th Nov 2018, 12:48 PM
Arushi Singhania
Arushi Singhania - avatar
+ 1
I have written my program in note file and I have save it as program1.html . when i opened it in browser it was show the correct thou i have not close the paragraph tags . both when haven't closed the tag and when i have closed tags are showing same ans. then what is the use of close tags if i can do it without closing the tags .
10th Nov 2018, 12:47 PM
Surya Tudu
Surya Tudu - avatar