Skip to content

Graded Quiz: HTML Overview :Introduction to Web Development with HTML, CSS, JavaScript (Cloud Application Development Foundations Specialization) Answers 2025

1. Question 1 – Which statement embeds an image in HTML?

❌ <image>link_to_image</image>
❌ <figure src="image URL">image name</figure>
✅ <img src="image URL">
❌ <img href="image URL">image name</img>

Explanation:

The HTML image tag uses src, not href, and does not require a closing tag.


2. Question 2 – Attribute for hyperlink destination?

❌ src
❌ target
✅ href
❌ alt

Explanation:

href specifies the destination URL in the <a> tag.


3. Question 3 – Which tag CANNOT contain text?

❌ <h1>
❌ <body>
❌ <p>
✅ <br>

Explanation:

<br> is a void element—it has no closing tag and cannot contain text.


4. Question 4 – How are comments written in HTML?

❌ """ comment """
❌ /* comment */
✅ <!-- This is a comment -->
❌ # comment

Explanation:

HTML comments use <!-- ... -->.


5. Question 5 – Tag for a table data cell?

❌ <tr>
✅ <td>
❌ <th>
❌ <thead>

Explanation:

<td> represents a table data cell.


6. Question 6 – Which is NOT an HTML tag?

❌ <ul>
❌ <li>
❌ <p>
✅ <!DOCTYPE html>

Explanation:

<!DOCTYPE html> is a declaration, not a tag.


7. Question 7 – What is <br> used for?

✅ To add a line break
❌ Change border
❌ Change text color
❌ Make text bold


8. Question 8 – Least important heading?

✅ <h6>
❌ <h5>
❌ <h2>
❌ <h1>

Explanation:

Headings range from <h1> (most important) to <h6> (least).


9. Question 9 – Tag for an ordered list?

✅ <ol>
❌ <ul>
❌ <orderedlist>
❌ <li>


10. Question 10 – Conditions required for scripting to be enabled? (Select all)

❌ Embedded object used without sandbox
✅ The user has not disabled scripting
❌ Sandboxed browsing context flag set (this disables scripting)
✅ Browser supports scripting

Correct Answers:

✅ User hasn’t disabled scripting
✅ Browser supports scripting


🧾 SUMMARY TABLE

Q# Correct Answer
1 <img src="">
2 href
3 <br>
4 <!-- comment -->
5 <td>
6 <!DOCTYPE html>
7 Line break
8 <h6>
9 <ol>
10 User hasn’t disabled scripting, Browser supports scripting