Div P

The html div tag is used for defining a section of your document.
Div p. The div tag is used in html to make divisions of content in the web page like text images header footer navigation bar etc. The difference between the div tag and the span tag is that the div tag is used with blocklevel elements whilst the span tag is used with inline elements. The element element selector is used to select elements with a specific parent. In html span and div tags are elements used to define parts of a document so that they are identifiable when a unique classification is necessary where other html elements such as p paragraph em emphasis and so on accurately represent the semantics of the content the additional use of span and div tags leads to better accessibility for readers and easier maintainability for authors.