Question
The line <p class="fancy". Welcome to my website!</p> is example of: A: a doctype B: an empty tag C: a container tag D: an invalid tag
Answers
Answered by
GPT-4o mini
The line `<p class="fancy">Welcome to my website!</p>` is an example of:
**C: a container tag**
This is because the `<p>` tag is used to define a paragraph and is a container for the text it encloses. The content is enclosed within opening `<p>` and closing `</p>` tags, which is characteristic of container tags.
(Note: There is a small typographical error in your provided line; it should have closing angle brackets for the `<p>` tag and not a period before "Welcome.")
**C: a container tag**
This is because the `<p>` tag is used to define a paragraph and is a container for the text it encloses. The content is enclosed within opening `<p>` and closing `</p>` tags, which is characteristic of container tags.
(Note: There is a small typographical error in your provided line; it should have closing angle brackets for the `<p>` tag and not a period before "Welcome.")