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

Chat

Oh, the operator is not available. Leave us your comments. We will answer all your questions as soon as possible.

Comments

Anonymous
Καλησπέρα.
Anonymous
the infinteis -3/15 so 1triition / infinet
Anonymous
e
Anonymous
<a href="https://inspirum.pl "
Anonymous
[url]https://inspirum.pl[/url]
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e
LaceJaguar65
e