Which HTML tag is used to define a paragraph?
A
<paragraph> B
<text> C
<p> D
<para>
Analysis & Theory
`<p>` is the correct HTML tag to define a paragraph.
What happens if you use multiple `<p>` tags in HTML?
A
Only the first one is displayed B
They all appear on the same line C
Each is rendered as a separate block D
It causes an error
Analysis & Theory
Each `<p>` tag creates a new block of text, separated from others.
Which of the following is true about the `<p>` element?
A
It is an inline element B
It is a block-level element C
It can only be used inside tables D
It is used to display images
Analysis & Theory
`<p>` is a block-level element used to group text into paragraphs.
What does a browser do if you forget to close a `<p>` tag?
A
It displays nothing B
It auto-closes the tag C
It shows an error D
It highlights the text in red
Analysis & Theory
Most browsers automatically close unclosed `<p>` tags during rendering.
Can you nest one `<p>` tag inside another?
A
Yes, it's valid HTML B
No, it will cause a layout issue C
Yes, but only in HTML5 D
Only with special CSS
Analysis & Theory
Nesting `<p>` tags is not valid and can break the document structure.
Which tag can be used inside a `<p>` tag?
A
<div> B
<h1> C
<img> D
<p>
Analysis & Theory
`<img>` is an inline element and can be placed inside a `<p>`.
What will be the result of using two `<p>` tags one after the other?
A
They will appear on the same line B
They will stack as separate paragraphs C
They will overlap D
The second will replace the first
Analysis & Theory
Each `<p>` is treated as a separate paragraph and appears on a new line.
Which attribute is commonly used with `<p>` to apply custom styles?
A
style B
href C
src D
alt
Analysis & Theory
`style` is used to apply inline CSS to a `<p>` tag.
Which CSS property is often used to control spacing around paragraphs?
A
border B
padding C
margin D
font-size
Analysis & Theory
`margin` controls the space outside the paragraph.
What is the default alignment of text inside a `<p>` tag?
A
Right B
Left C
Center D
Justify
Analysis & Theory
By default, paragraph text is aligned to the left.