what is the difference between p and div?
The <p> tag represents a paragraph of text, that's it. It's a block element and not an inline element. The <div> means content division. It does not mean anything on its own but is usually used to group some amount of content.