What is a <p> tag?

Experience Level: Junior
Tags: HTML

Answer

  • The <p> tag is used to represent a paragraph of text.
  • The <p> tag is a block element.
  • The <p> tag can contain only in-line elements.
  • Don't use the <p /> as self-closing element. It should never be used on its own and should always contain text content.
Example
<p>This is a paragraph of text.</p>
Related HTML job interview questions

Comments

LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
HTML for beginners
HTML for beginners

Are you learning HTML ? Try our test we designed to help you progress faster.

Test yourself