Why whe can show text just with <p> without closing tags at html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why whe can show text just with <p> without closing tags at html

Wanna ask,why when we delete the </p> at <p>This is a paragraph It still can display the text

16th May 2020, 7:59 AM
Mhd. Arraza Pratama
Mhd. Arraza Pratama - avatar
2 Answers
+ 2
End tags are used in HTML/XML to define scope: to demarcate where the content of a node begins and ends. All languages have some way of defining scope: it's a crucial aspect of parsing, because all the browser is seeing is one character at a time.
16th May 2020, 8:06 AM
sarada lakshmi
sarada lakshmi - avatar
0
XML is different than HTML?
16th May 2020, 8:15 AM
Muhammad Junaid
Muhammad Junaid - avatar