+ 1

in HTML is it necessary to write head and body tag? can i write paragraph tag Direct after HTML tag?

17th Jul 2021, 2:12 PM
Aliul Nadab
Aliul Nadab - avatar
5 odpowiedzi
+ 3
maybe you can yeet out head, but not body as it is the visual part of a webpage. without it, don't even expect that your browser will show it.
17th Jul 2021, 2:18 PM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 1
Head tag tell browser that content inside are links for setting, not for visual, Body tag tell browser that content inside it is has to be shown on browser. You should practice standard methods and browser friendly code to load easily Codepen has the same form you are talking about but they have preset to put all things inside body tag and show the result.
18th Jul 2021, 3:00 AM
Divya Mohan
Divya Mohan - avatar
0
In Sololearn playground you can do that maybe... But in pc when it open in your Localhost it will not work
18th Jul 2021, 6:30 AM
Anurag Saikia