These two simplified HTML5 codes gets the same result:
code #1:
<html>
<head>
<title>test</title>
</head>
<body>
<p>test1</p>
</body>
</html>
--
code #2:
<html>
<head>
<title>test</title>
</head>
<body>
test1
</body>
</html>
====
The output is the same in both cases, the screen prints the word "test1", so what the use of the tag <p>
? how does the browser understand the two codes? please note that the file code is .html extension