Register to Better Coder! It's free.
Enjoy the premium features and succeed at every job interview.
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.
<p>This is a paragraph of text.</p>
Related HTML job interview questions
What is a <input> tag?
HTML JuniorWhat is a <label> tag?
HTML JuniorWhat is a <span> tag?
HTML JuniorWhat is a <div> tag?
HTML JuniorWhat is a basic structure of the HTML page?
HTML Junior