HTML elements


#1

What is the difference between these two HTML elements? <body> and <p>


#2

body contains everything which should be displayed on a website, p is a paragraph element (if you need a paragraph of text)

if your website grows larger, we need to structure it, otherwise, it becomes a bit of a mess

for more information you can always check documentation:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.