Chapter 1 Beginner 58 Questions

Practice Questions — Introduction to HTML - The Language of the Web

← Back to Notes
17 Easy
15 Medium
8 Hard

Topic-Specific Questions

Question 1
Easy
What does the following HTML render as?
<h1>Hello World</h1>
h1 is the biggest heading.
A large, bold heading that says Hello World.
Question 2
Easy
What does this HTML render as?
<p>I love cricket.</p>
<p>I also love mathematics.</p>
Each

creates a separate paragraph with space between them.

Two paragraphs on separate lines:
I love cricket.
I also love mathematics.
Question 3
Easy
Fix this broken tag:
<p>This is a paragraph.<p>
The closing tag needs a slash.
<p>This is a paragraph.</p>
Question 4
Easy
Write HTML for a simple profile card that shows the name 'Aarav Patel' as a big heading and the description 'I love coding' as a paragraph.
Use

for the name and

for the description.

<h1>Aarav Patel</h1>
<p>I love coding</p>
Question 5
Easy
What does this render as?
<h1>Main Title</h1>
<h2>Sub Title</h2>
<h3>Section</h3>
h1 is biggest, h6 is smallest.
Three headings of decreasing size: a very large 'Main Title', a medium 'Sub Title', and a smaller 'Section'.
Question 6
Easy
Rohan wrote this image tag but the alt text is wrong. Fix it:
<img src="dog.jpg" alt=My best friend>
Attribute values with spaces need quotes.
<img src="dog.jpg" alt="My best friend">
Question 7
Easy
What does this HTML create?
<a href="https://google.com">Click me</a>
A clickable link with the blue underlined text 'Click me' that opens google.com when clicked.
Question 8
Easy
Write HTML to display an unordered list with three items: Apple, Mango, Banana.
Use
    for the list and
  • for each item.
<ul>
  <li>Apple</li>
  <li>Mango</li>
  <li>Banana</li>
</ul>
Question 9
Easy
Ananya wrote this code but the headline will not show. What is wrong?
<!DOCTYPE html>
<html>
<head>
  <h1>Welcome to my page</h1>
</head>
<body>
</body>
</html>
Visible content belongs in a specific section.
Move the <h1> from inside <head> into <body>.
Question 10
Easy
What does this render as?
<p>Line one.<br>Line two.</p>

is a line break.
One paragraph with two lines:
Line one.
Line two.
Question 11
Easy
Write a complete HTML page (with DOCTYPE, html, head, body) that shows the heading 'My Hobbies' and a paragraph saying 'I like cricket and painting.'
Remember the standard structure: DOCTYPE, html, head (with title), body (with content).
<!DOCTYPE html>
<html>
<head>
  <title>Hobbies</title>
</head>
<body>
  <h1>My Hobbies</h1>
  <p>I like cricket and painting.</p>
</body>
</html>
Question 12
Easy
What does this render?
<ol>
  <li>Wake up</li>
  <li>Brush teeth</li>
  <li>Eat breakfast</li>
</ol>
    is an ordered list.
A numbered list:
1. Wake up
2. Brush teeth
3. Eat breakfast
Question 13
Medium
Vikram wrote this link but it does not go anywhere when clicked. Fix it:
<a>Visit Wikipedia</a>
A link needs a destination.
<a href="https://www.wikipedia.org">Visit Wikipedia</a>
Question 14
Medium
What does this HTML produce?
<h1>Recipe</h1>
<p>Ingredients:</p>
<ul>
  <li>Flour</li>
  <li>Sugar</li>
  <li>Milk</li>
</ul>
<hr>
<p>Mix well and bake.</p>
Go element by element — heading, paragraph, list, horizontal rule, paragraph.
A heading 'Recipe', then 'Ingredients:', then a bulleted list of Flour, Sugar, Milk, then a horizontal line, then the text 'Mix well and bake.'
Question 15
Medium
Write HTML for an image of a sunset that has the alt text 'Beautiful sunset at the beach' and uses the source 'sunset.jpg'.
is self-closing and needs src and alt attributes.
<img src="sunset.jpg" alt="Beautiful sunset at the beach">
Question 16
Medium
Neha saved a file with her HTML but double-clicking it opens Notepad instead of a browser. What is wrong?
Check the file extension.
The file was probably saved as .txt instead of .html. Rename the file so it ends with .html (for example page.html).
Question 17
Medium
What does this render?
<h2>Contact</h2>
<p>Email me at <a href="mailto:rohan@example.com">rohan@example.com</a></p>
The anchor tag is nested inside the paragraph.
A sub-heading 'Contact' followed by 'Email me at rohan@example.com' where the email address is a clickable link.
Question 18
Medium
Write HTML for a page that has the title 'My Dog' (shown on the browser tab), a heading 'Meet Buddy', and a paragraph describing the dog.
Use inside <head> for the tab title and <h1> inside <body> for the visible heading.</div><button type="button" class="collapsible-toggle" data-target="answer-ts-18" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-ts-18"><pre><code><!DOCTYPE html> <html> <head> <title>My Dog</title> </head> <body> <h1>Meet Buddy</h1> <p>Buddy is a golden retriever who loves playing fetch in the park.</p> </body> </html></code></pre></div></div> <div class="question-card"> <div class="question-number">Question 19</div> <span class="question-difficulty medium">Medium</span> <div class="question-text">This list is broken. Fix it:<br><pre><code><ul> Apple Mango Banana </ul></code></pre></div><button type="button" class="collapsible-toggle" data-target="hint-ts-19" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-ts-19">Each item needs its own tag.</div><button type="button" class="collapsible-toggle" data-target="answer-ts-19" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-ts-19"><pre><code><ul> <li>Apple</li> <li>Mango</li> <li>Banana</li> </ul></code></pre></div></div> <div class="question-card"> <div class="question-number">Question 20</div> <span class="question-difficulty medium">Medium</span> <div class="question-text">What does this code render?<br><pre><code><h1>Welcome</h1> <h1>Welcome again</h1> <h1>Welcome one more time</h1></code></pre></div><button type="button" class="collapsible-toggle" data-target="hint-ts-20" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-ts-20">All three are h1 tags — what does that mean visually?</div><button type="button" class="collapsible-toggle" data-target="answer-ts-20" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-ts-20">Three identical large headings stacked on top of each other: 'Welcome', 'Welcome again', 'Welcome one more time'.</div></div> <div class="question-card"> <div class="question-number">Question 21</div> <span class="question-difficulty medium">Medium</span> <div class="question-text">Write HTML for a simple profile card of 'Priya Sharma' that includes her name as a heading, her age as a paragraph, and a list of three hobbies: reading, painting, dancing.</div><button type="button" class="collapsible-toggle" data-target="hint-ts-21" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-ts-21">Combine heading, paragraph, and unordered list tags.</div><button type="button" class="collapsible-toggle" data-target="answer-ts-21" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-ts-21"><pre><code><h1>Priya Sharma</h1> <p>Age: 14</p> <h2>Hobbies</h2> <ul> <li>Reading</li> <li>Painting</li> <li>Dancing</li> </ul></code></pre></div></div> <div class="question-card"> <div class="question-number">Question 22</div> <span class="question-difficulty hard">Hard</span> <div class="question-text">What will the browser show for this code?<br><pre><code><p>Hello<br>World<br>From HTML</p></code></pre></div><button type="button" class="collapsible-toggle" data-target="hint-ts-22" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-ts-22"><br> creates line breaks inside the same paragraph.</div><button type="button" class="collapsible-toggle" data-target="answer-ts-22" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-ts-22">One paragraph that looks like:<br>Hello<br>World<br>From HTML</div></div> <div class="question-card"> <div class="question-number">Question 23</div> <span class="question-difficulty hard">Hard</span> <div class="question-text">Vikram wrote this but the browser shows no image. Find all the bugs:<br><pre><code><img scr=cat.jpg></code></pre></div><button type="button" class="collapsible-toggle" data-target="hint-ts-23" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-ts-23">Check the attribute name and the quotes.</div><button type="button" class="collapsible-toggle" data-target="answer-ts-23" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-ts-23"><pre><code><img src="cat.jpg" alt="A cat"></code></pre></div></div> <div class="question-card"> <div class="question-number">Question 24</div> <span class="question-difficulty hard">Hard</span> <div class="question-text">Write a complete HTML page for a mini 'About Me' website. It should have a title 'About Aarav', a main heading with the name, a paragraph about you, a sub-heading 'Favourite Subjects', an unordered list of three subjects, and a link to your school's website.</div><button type="button" class="collapsible-toggle" data-target="hint-ts-24" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-ts-24">Use DOCTYPE, html, head (with title), and body (with all content).</div><button type="button" class="collapsible-toggle" data-target="answer-ts-24" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-ts-24"><pre><code><!DOCTYPE html> <html> <head> <title>About Aarav</title> </head> <body> <h1>Aarav Gupta</h1> <p>I am 13 years old and I love building things with HTML.</p> <h2>Favourite Subjects</h2> <ul> <li>Computer Science</li> <li>Mathematics</li> <li>Science</li> </ul> <p>Visit my school: <a href="https://www.myschool.in">My School</a></p> </body> </html></code></pre></div></div> <div class="question-card"> <div class="question-number">Question 25</div> <span class="question-difficulty hard">Hard</span> <div class="question-text">What is wrong with this output prediction: the developer expects 'Hello World' on one line, but it shows on two lines?<br><pre><code><h1>Hello</h1>World</code></pre></div><button type="button" class="collapsible-toggle" data-target="hint-ts-25" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-ts-25">h1 is a block-level element.</div><button type="button" class="collapsible-toggle" data-target="answer-ts-25" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-ts-25">The <code><h1></code> is a block-level element, meaning it takes up the full width and creates a line break after it. So 'World' appears on the next line.</div></div> </section> <!-- Mixed / Application Questions --> <section class="practice-section" id="mixed-questions"> <h2>Mixed & Application Questions</h2> <div class="question-card"> <div class="question-number">Question 1</div> <span class="question-difficulty easy">Easy</span> <div class="question-text">What does this render?<br><pre><code><h2>About Me</h2></code></pre></div><button type="button" class="collapsible-toggle" data-target="hint-mx-1" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-mx-1">h2 is a sub-heading.</div><button type="button" class="collapsible-toggle" data-target="answer-mx-1" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-mx-1">A medium-sized bold heading saying 'About Me'.</div></div> <div class="question-card"> <div class="question-number">Question 2</div> <span class="question-difficulty easy">Easy</span> <div class="question-text">Write HTML for a link that opens the Modern Age Coders website.</div><button type="button" class="collapsible-toggle" data-target="hint-mx-2" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-mx-2">Use the <a> tag with href.</div><button type="button" class="collapsible-toggle" data-target="answer-mx-2" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-mx-2"><pre><code><a href="https://learn.modernagecoders.com">Modern Age Coders</a></code></pre></div></div> <div class="question-card"> <div class="question-number">Question 3</div> <span class="question-difficulty easy">Easy</span> <div class="question-text">What does this render?<br><pre><code><p>Item 1</p> <hr> <p>Item 2</p></code></pre></div><button type="button" class="collapsible-toggle" data-target="hint-mx-3" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-mx-3"><hr> is a horizontal rule.</div><button type="button" class="collapsible-toggle" data-target="answer-mx-3" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-mx-3">'Item 1', then a horizontal line across the page, then 'Item 2'.</div></div> <div class="question-card"> <div class="question-number">Question 4</div> <span class="question-difficulty easy">Easy</span> <div class="question-text">Fix this:<br><pre><code><h1>Hello</h2></code></pre></div><button type="button" class="collapsible-toggle" data-target="hint-mx-4" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-mx-4">Opening and closing tags must match.</div><button type="button" class="collapsible-toggle" data-target="answer-mx-4" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-mx-4"><pre><code><h1>Hello</h1></code></pre></div></div> <div class="question-card"> <div class="question-number">Question 5</div> <span class="question-difficulty easy">Easy</span> <div class="question-text">Write HTML for three paragraphs introducing yourself, your age, and your city.</div><button type="button" class="collapsible-toggle" data-target="hint-mx-5" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-mx-5">Use three separate <p> tags.</div><button type="button" class="collapsible-toggle" data-target="answer-mx-5" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-mx-5"><pre><code><p>My name is Ananya.</p> <p>I am 12 years old.</p> <p>I live in Mumbai.</p></code></pre></div></div> <div class="question-card"> <div class="question-number">Question 6</div> <span class="question-difficulty medium">Medium</span> <div class="question-text">What does this render?<br><pre><code><h1>Shop</h1> <h3>Fruits</h3> <ul><li>Apple</li><li>Mango</li></ul></code></pre></div><button type="button" class="collapsible-toggle" data-target="hint-mx-6" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-mx-6">HTML ignores whitespace — the list still renders with bullets.</div><button type="button" class="collapsible-toggle" data-target="answer-mx-6" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-mx-6">A big heading 'Shop', a smaller heading 'Fruits', then a bulleted list with Apple and Mango.</div></div> <div class="question-card"> <div class="question-number">Question 7</div> <span class="question-difficulty medium">Medium</span> <div class="question-text">Write HTML that shows an image named 'logo.png' with alt text 'Company Logo', followed by a heading 'Welcome', followed by a link to 'about.html' with the text 'Learn more'.</div><button type="button" class="collapsible-toggle" data-target="hint-mx-7" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-mx-7">Combine img, h1, and a tags.</div><button type="button" class="collapsible-toggle" data-target="answer-mx-7" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-mx-7"><pre><code><img src="logo.png" alt="Company Logo"> <h1>Welcome</h1> <a href="about.html">Learn more</a></code></pre></div></div> <div class="question-card"> <div class="question-number">Question 8</div> <span class="question-difficulty medium">Medium</span> <div class="question-text">Rohan's page looks wrong. Find the problem:<br><pre><code><!DOCTYPE html> <html> <body> <h1>Hi</h1> </body></code></pre></div><button type="button" class="collapsible-toggle" data-target="hint-mx-8" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-mx-8">Something is missing at the end.</div><button type="button" class="collapsible-toggle" data-target="answer-mx-8" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-mx-8">The closing <code></html></code> tag is missing. Add it after <code></body></code>.</div></div> <div class="question-card"> <div class="question-number">Question 9</div> <span class="question-difficulty medium">Medium</span> <div class="question-text">What does this render?<br><pre><code><ol> <li>Morning</li> <li>Afternoon</li> <li>Evening</li> <li>Night</li> </ol></code></pre></div><button type="button" class="collapsible-toggle" data-target="hint-mx-9" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-mx-9"><ol> is an ordered list.</div><button type="button" class="collapsible-toggle" data-target="answer-mx-9" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-mx-9">A numbered list:<br>1. Morning<br>2. Afternoon<br>3. Evening<br>4. Night</div></div> <div class="question-card"> <div class="question-number">Question 10</div> <span class="question-difficulty medium">Medium</span> <div class="question-text">Write HTML for a news article layout: a title, the author's name in a smaller heading, a paragraph of content, and a horizontal line at the bottom.</div><button type="button" class="collapsible-toggle" data-target="hint-mx-10" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-mx-10">Use h1 for title, h3 or h4 for author, p for content, and hr for the line.</div><button type="button" class="collapsible-toggle" data-target="answer-mx-10" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-mx-10"><pre><code><h1>Local School Wins Robotics Contest</h1> <h3>By Priya Sharma</h3> <p>Students from Delhi Public School won first prize at the national robotics contest held last week.</p> <hr></code></pre></div></div> <div class="question-card"> <div class="question-number">Question 11</div> <span class="question-difficulty medium">Medium</span> <div class="question-text">Why does this list not have bullets?<br><pre><code><li>One</li> <li>Two</li> <li>Three</li></code></pre></div><button type="button" class="collapsible-toggle" data-target="hint-mx-11" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-mx-11">List items must be inside a list container.</div><button type="button" class="collapsible-toggle" data-target="answer-mx-11" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-mx-11"><pre><code><ul> <li>One</li> <li>Two</li> <li>Three</li> </ul></code></pre></div></div> <div class="question-card"> <div class="question-number">Question 12</div> <span class="question-difficulty hard">Hard</span> <div class="question-text">What does this render?<br><pre><code><ul> <li>Fruits <ul> <li>Apple</li> <li>Mango</li> </ul> </li> <li>Vegetables</li> </ul></code></pre></div><button type="button" class="collapsible-toggle" data-target="hint-mx-12" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-mx-12">Lists can be nested inside other lists.</div><button type="button" class="collapsible-toggle" data-target="answer-mx-12" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-mx-12">A bulleted list where 'Fruits' has an indented sub-list with Apple and Mango, and then 'Vegetables' as the second main item.</div></div> <div class="question-card"> <div class="question-number">Question 13</div> <span class="question-difficulty hard">Hard</span> <div class="question-text">Write a complete HTML page for a restaurant menu: title 'Tasty Bites', heading 'Our Menu', a sub-heading 'Starters' with an unordered list of three starters, a sub-heading 'Main Course' with an ordered list of three main courses, and a horizontal line at the bottom.</div><button type="button" class="collapsible-toggle" data-target="hint-mx-13" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-mx-13">Combine everything you know: DOCTYPE, html, head, body, h1, h2, ul, ol, li, hr.</div><button type="button" class="collapsible-toggle" data-target="answer-mx-13" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-mx-13"><pre><code><!DOCTYPE html> <html> <head> <title>Tasty Bites</title> </head> <body> <h1>Our Menu</h1> <h2>Starters</h2> <ul> <li>Paneer Tikka</li> <li>Veg Spring Rolls</li> <li>Tomato Soup</li> </ul> <h2>Main Course</h2> <ol> <li>Butter Chicken</li> <li>Dal Makhani</li> <li>Biryani</li> </ol> <hr> </body> </html></code></pre></div></div> <div class="question-card"> <div class="question-number">Question 14</div> <span class="question-difficulty hard">Hard</span> <div class="question-text">What are the two problems with this link?<br><pre><code><a href=google.com>Click<a></code></pre></div><button type="button" class="collapsible-toggle" data-target="hint-mx-14" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-mx-14">Look at the href value and the closing tag.</div><button type="button" class="collapsible-toggle" data-target="answer-mx-14" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-mx-14"><pre><code><a href="https://google.com">Click</a></code></pre></div></div> <div class="question-card"> <div class="question-number">Question 15</div> <span class="question-difficulty hard">Hard</span> <div class="question-text">Write HTML for a blog post with a heading, an image at the top (with alt text), two paragraphs of content, a sub-heading 'Conclusion', one more paragraph, and a link at the bottom that says 'Read more articles'.</div><button type="button" class="collapsible-toggle" data-target="hint-mx-15" data-label-closed="Show Hint" data-label-open="Hide Hint" aria-expanded="false">Show Hint</button><div class="collapsible-content" id="hint-mx-15">Combine h1, img, p, h2, and a.</div><button type="button" class="collapsible-toggle" data-target="answer-mx-15" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="answer-mx-15"><pre><code><h1>My First Trip to the Hills</h1> <img src="hills.jpg" alt="Mountains covered in snow"> <p>Last weekend, my family and I went to the hills for a short trip.</p> <p>The weather was perfect and the views were amazing.</p> <h2>Conclusion</h2> <p>It was one of the best trips I have ever had.</p> <a href="articles.html">Read more articles</a></code></pre></div></div> </section> <!-- MCQs --> <section class="practice-section" id="mcqs"> <h2>Multiple Choice Questions</h2> <div class="question-card"> <div class="question-number">MCQ 1</div> <div class="question-text">What does HTML stand for?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> Hyper Tool Markup Language</li><li><span class="mcq-option-label">B.</span> HyperText Markup Language</li><li><span class="mcq-option-label">C.</span> Home Tool Management Language</li><li><span class="mcq-option-label">D.</span> Hyperlink Text Making Language</li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-1" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-1"><strong>Answer: B</strong><br><strong>B is correct.</strong> HTML stands for HyperText Markup Language. 'HyperText' refers to text with clickable links, and 'Markup Language' means we add tags to mark the meaning of content.</div></div> <div class="question-card"> <div class="question-number">MCQ 2</div> <div class="question-text">Who invented HTML?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> Bill Gates</li><li><span class="mcq-option-label">B.</span> Tim Berners-Lee</li><li><span class="mcq-option-label">C.</span> Steve Jobs</li><li><span class="mcq-option-label">D.</span> Mark Zuckerberg</li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-2" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-2"><strong>Answer: B</strong><br><strong>B is correct.</strong> Tim Berners-Lee invented HTML in 1991 while working at CERN. He also created the first web browser and web server, which together started the World Wide Web.</div></div> <div class="question-card"> <div class="question-number">MCQ 3</div> <div class="question-text">Which tag creates the largest heading?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> <h6></li><li><span class="mcq-option-label">B.</span> <heading></li><li><span class="mcq-option-label">C.</span> <h1></li><li><span class="mcq-option-label">D.</span> <head></li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-3" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-3"><strong>Answer: C</strong><br><strong>C is correct.</strong> <code><h1></code> is the largest heading. Heading tags go from <code><h1></code> (biggest) to <code><h6></code> (smallest). <code><heading></code> is not a valid HTML tag.</div></div> <div class="question-card"> <div class="question-number">MCQ 4</div> <div class="question-text">Which tag is used for a paragraph?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> <para></li><li><span class="mcq-option-label">B.</span> <paragraph></li><li><span class="mcq-option-label">C.</span> <p></li><li><span class="mcq-option-label">D.</span> <text></li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-4" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-4"><strong>Answer: C</strong><br><strong>C is correct.</strong> The <code><p></code> tag creates a paragraph. <code><para></code>, <code><paragraph></code>, and <code><text></code> are not valid HTML tags.</div></div> <div class="question-card"> <div class="question-number">MCQ 5</div> <div class="question-text">What file extension do HTML files use?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> .txt</li><li><span class="mcq-option-label">B.</span> .doc</li><li><span class="mcq-option-label">C.</span> .html</li><li><span class="mcq-option-label">D.</span> .web</li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-5" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-5"><strong>Answer: C</strong><br><strong>C is correct.</strong> HTML files must end with <code>.html</code> (or sometimes <code>.htm</code>). This tells the computer to open the file with a web browser, not a text editor.</div></div> <div class="question-card"> <div class="question-number">MCQ 6</div> <div class="question-text">Which tag creates a line break?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> <break></li><li><span class="mcq-option-label">B.</span> <br></li><li><span class="mcq-option-label">C.</span> <newline></li><li><span class="mcq-option-label">D.</span> <lb></li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-6" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-6"><strong>Answer: B</strong><br><strong>B is correct.</strong> <code><br></code> creates a line break. It is a self-closing tag with no content inside. The other options are not valid HTML tags.</div></div> <div class="question-card"> <div class="question-number">MCQ 7</div> <div class="question-text">What is HTML?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> A programming language</li><li><span class="mcq-option-label">B.</span> A markup language</li><li><span class="mcq-option-label">C.</span> A database</li><li><span class="mcq-option-label">D.</span> A web browser</li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-7" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-7"><strong>Answer: B</strong><br><strong>B is correct.</strong> HTML is a markup language — it describes the structure of content using tags. It is not a programming language because it cannot make decisions, do math, or loop. CSS and JavaScript add style and logic.</div></div> <div class="question-card"> <div class="question-number">MCQ 8</div> <div class="question-text">Which tag creates a clickable link?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> <link></li><li><span class="mcq-option-label">B.</span> <href></li><li><span class="mcq-option-label">C.</span> <a></li><li><span class="mcq-option-label">D.</span> <url></li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-8" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-8"><strong>Answer: C</strong><br><strong>C is correct.</strong> The <code><a></code> tag (anchor tag) creates a hyperlink. The <code>href</code> attribute inside it specifies the destination. <code><link></code> is a different tag used in the head for linking to CSS files.</div></div> <div class="question-card"> <div class="question-number">MCQ 9</div> <div class="question-text">Which tag does NOT need a closing tag?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> <p></li><li><span class="mcq-option-label">B.</span> <img></li><li><span class="mcq-option-label">C.</span> <h1></li><li><span class="mcq-option-label">D.</span> <a></li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-9" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-9"><strong>Answer: B</strong><br><strong>B is correct.</strong> <code><img></code> is a self-closing (void) tag — it has no content between opening and closing. Other self-closing tags include <code><br></code>, <code><hr></code>, and <code><input></code>.</div></div> <div class="question-card"> <div class="question-number">MCQ 10</div> <div class="question-text">Where should the visible content of the page go?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> Inside <head></li><li><span class="mcq-option-label">B.</span> Inside <body></li><li><span class="mcq-option-label">C.</span> Inside <title></li><li><span class="mcq-option-label">D.</span> Inside <html></li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-10" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-10"><strong>Answer: B</strong><br><strong>B is correct.</strong> All visible content — headings, paragraphs, images, links, lists — goes inside <code><body></code>. The <code><head></code> is for metadata like the title and character encoding.</div></div> <div class="question-card"> <div class="question-number">MCQ 11</div> <div class="question-text">Which attribute specifies the destination URL of a link?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> src</li><li><span class="mcq-option-label">B.</span> link</li><li><span class="mcq-option-label">C.</span> href</li><li><span class="mcq-option-label">D.</span> url</li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-11" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-11"><strong>Answer: C</strong><br><strong>C is correct.</strong> The <code>href</code> attribute on an <code><a></code> tag holds the URL the link goes to. <code>src</code> is used for images and scripts, not links.</div></div> <div class="question-card"> <div class="question-number">MCQ 12</div> <div class="question-text">What is an HTML element?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> Just a tag</li><li><span class="mcq-option-label">B.</span> Just the content</li><li><span class="mcq-option-label">C.</span> An opening tag, content, and closing tag together</li><li><span class="mcq-option-label">D.</span> An attribute name</li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-12" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-12"><strong>Answer: C</strong><br><strong>C is correct.</strong> An element consists of the opening tag, the content inside, and the closing tag. For example, <code><p>Hello</p></code> is one element. Self-closing tags like <code><img></code> are also elements, just without inner content.</div></div> <div class="question-card"> <div class="question-number">MCQ 13</div> <div class="question-text">What is the correct way to add an image?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> <img href="cat.jpg"></li><li><span class="mcq-option-label">B.</span> <image src="cat.jpg"></li><li><span class="mcq-option-label">C.</span> <img src="cat.jpg" alt="A cat"></li><li><span class="mcq-option-label">D.</span> <picture>cat.jpg</picture></li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-13" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-13"><strong>Answer: C</strong><br><strong>C is correct.</strong> The correct tag is <code><img></code> with <code>src</code> for the source and <code>alt</code> for the alternative text. <code><image></code> is not a valid tag, and <code>href</code> is for links, not images.</div></div> <div class="question-card"> <div class="question-number">MCQ 14</div> <div class="question-text">What does the DOCTYPE declaration do?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> It is the page title</li><li><span class="mcq-option-label">B.</span> It tells the browser this is HTML5</li><li><span class="mcq-option-label">C.</span> It creates a comment</li><li><span class="mcq-option-label">D.</span> It adds styles</li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-14" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-14"><strong>Answer: B</strong><br><strong>B is correct.</strong> <code><!DOCTYPE html></code> at the very top tells the browser to render the page using the HTML5 standard. Without it, browsers may fall back to an older rendering mode.</div></div> <div class="question-card"> <div class="question-number">MCQ 15</div> <div class="question-text">Which tag creates a numbered list?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> <ul></li><li><span class="mcq-option-label">B.</span> <list></li><li><span class="mcq-option-label">C.</span> <ol></li><li><span class="mcq-option-label">D.</span> <nl></li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-15" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-15"><strong>Answer: C</strong><br><strong>C is correct.</strong> <code><ol></code> creates an ordered (numbered) list. <code><ul></code> creates an unordered (bulleted) list. Both contain <code><li></code> items.</div></div> <div class="question-card"> <div class="question-number">MCQ 16</div> <div class="question-text">Which of these is an attribute?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> <p></li><li><span class="mcq-option-label">B.</span> href="page.html"</li><li><span class="mcq-option-label">C.</span> Hello World</li><li><span class="mcq-option-label">D.</span> </p></li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-16" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-16"><strong>Answer: B</strong><br><strong>B is correct.</strong> An attribute is a name-value pair written inside an opening tag, like <code>href="page.html"</code>. <code><p></code> is a tag, 'Hello World' is content, and <code></p></code> is a closing tag.</div></div> <div class="question-card"> <div class="question-number">MCQ 17</div> <div class="question-text">What version of HTML is currently standard?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> HTML 3</li><li><span class="mcq-option-label">B.</span> HTML 4</li><li><span class="mcq-option-label">C.</span> HTML5</li><li><span class="mcq-option-label">D.</span> HTML 6</li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-17" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-17"><strong>Answer: C</strong><br><strong>C is correct.</strong> HTML5, released in 2014, is the current standard. HTML5 added native support for audio, video, canvas drawings, and many other features. HTML 6 does not exist yet.</div></div> <div class="question-card"> <div class="question-number">MCQ 18</div> <div class="question-text">Which of these statements is TRUE about HTML?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> HTML requires a compiler to run</li><li><span class="mcq-option-label">B.</span> HTML is case-sensitive for all tags</li><li><span class="mcq-option-label">C.</span> HTML is forgiving — small mistakes usually do not crash the page</li><li><span class="mcq-option-label">D.</span> HTML can perform calculations</li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-18" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-18"><strong>Answer: C</strong><br><strong>C is correct.</strong> HTML is very forgiving — if you misspell a tag or forget a closing tag, the browser usually tries to fix it. This makes HTML great for learning. HTML needs no compiler (A), is not strictly case-sensitive for tags (B), and cannot do math (D).</div></div> <div class="question-card"> <div class="question-number">MCQ 19</div> <div class="question-text">What is the DOM?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> Document Output Memory</li><li><span class="mcq-option-label">B.</span> Direct Object Model</li><li><span class="mcq-option-label">C.</span> Document Object Model</li><li><span class="mcq-option-label">D.</span> Digital Output Module</li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-19" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-19"><strong>Answer: C</strong><br><strong>C is correct.</strong> DOM stands for Document Object Model. It is the tree-like structure the browser builds in memory from your HTML. JavaScript can read and change the DOM to make pages interactive.</div></div> <div class="question-card"> <div class="question-number">MCQ 20</div> <div class="question-text">In which year was HTML invented?</div> <ul class="mcq-options"><li><span class="mcq-option-label">A.</span> 1985</li><li><span class="mcq-option-label">B.</span> 1991</li><li><span class="mcq-option-label">C.</span> 2000</li><li><span class="mcq-option-label">D.</span> 2014</li></ul><button type="button" class="collapsible-toggle" data-target="mcqans-mcq-20" data-label-closed="Show Answer" data-label-open="Hide Answer" aria-expanded="false">Show Answer</button><div class="collapsible-content" id="mcqans-mcq-20"><strong>Answer: B</strong><br><strong>B is correct.</strong> HTML was invented by Tim Berners-Lee in 1991 at CERN. 2014 (D) is when HTML5 was officially standardised, but HTML itself is much older.</div></div> </section> <!-- Coding Challenges --> <section class="practice-section" id="coding-challenges"> <h2>Coding Challenges</h2> <div class="challenge-card"> <h3>Challenge 1: My First Profile Card</h3> <span class="challenge-difficulty easy">Easy</span> <div class="challenge-description"></div><div class="challenge-constraints">Must be a complete HTML document with DOCTYPE, html, head, and body. Use h1, p, ul, and li tags.</div><button type="button" class="collapsible-toggle" data-target="sol-challenge-1" data-label-closed="Show Solution" data-label-open="Hide Solution" aria-expanded="false">Show Solution</button><div class="collapsible-content" id="sol-challenge-1"><pre><code class="language-python"><!DOCTYPE html> <html> <head> <title>My Profile</title> </head> <body> <h1>Aarav</h1> <p>I am learning HTML</p> <ul> <li>Cricket</li> <li>Painting</li> <li>Reading</li> </ul> </body> </html></code></pre></div></div> <div class="challenge-card"> <h3>Challenge 2: Simple Recipe Page</h3> <span class="challenge-difficulty easy">Easy</span> <div class="challenge-description"></div><div class="challenge-constraints">Use h1, h2, ul, ol, and li tags.</div><button type="button" class="collapsible-toggle" data-target="sol-challenge-2" data-label-closed="Show Solution" data-label-open="Hide Solution" aria-expanded="false">Show Solution</button><div class="collapsible-content" id="sol-challenge-2"><pre><code class="language-python"><!DOCTYPE html> <html> <head> <title>Chocolate Milkshake</title> </head> <body> <h1>Chocolate Milkshake</h1> <h2>Ingredients</h2> <ul> <li>2 glasses of milk</li> <li>3 spoons of chocolate powder</li> <li>1 scoop of vanilla ice cream</li> </ul> <h2>Steps</h2> <ol> <li>Pour the milk into a blender</li> <li>Add the chocolate powder and ice cream</li> <li>Blend for 30 seconds and serve cold</li> </ol> </body> </html></code></pre></div></div> <div class="challenge-card"> <h3>Challenge 3: My Favourite Books Page</h3> <span class="challenge-difficulty medium">Medium</span> <div class="challenge-description"></div><div class="challenge-constraints">Use h1 for the main heading, h2 for each book title, and p for author and description.</div><button type="button" class="collapsible-toggle" data-target="sol-challenge-3" data-label-closed="Show Solution" data-label-open="Hide Solution" aria-expanded="false">Show Solution</button><div class="collapsible-content" id="sol-challenge-3"><pre><code class="language-python"><!DOCTYPE html> <html> <head> <title>My Books</title> </head> <body> <h1>My Favourite Books</h1> <h2>Harry Potter</h2> <p>Author: J.K. Rowling</p> <p>A young wizard discovers his magical powers and goes to a wizard school.</p> <h2>The Jungle Book</h2> <p>Author: Rudyard Kipling</p> <p>A boy raised by wolves has amazing adventures in an Indian jungle.</p> <h2>Panchatantra</h2> <p>Author: Vishnu Sharma</p> <p>A collection of wise animal stories that teach life lessons.</p> </body> </html></code></pre></div></div> <div class="challenge-card"> <h3>Challenge 4: Navigation With Links</h3> <span class="challenge-difficulty medium">Medium</span> <div class="challenge-description"></div><div class="challenge-constraints">Use h1 for the heading and <a> with href for links. Each link should be wrapped in its own <p>.</div><button type="button" class="collapsible-toggle" data-target="sol-challenge-4" data-label-closed="Show Solution" data-label-open="Hide Solution" aria-expanded="false">Show Solution</button><div class="collapsible-content" id="sol-challenge-4"><pre><code class="language-python"><!DOCTYPE html> <html> <head> <title>My Links</title> </head> <body> <h1>Welcome</h1> <p><a href="https://www.google.com">Visit Google</a></p> <p><a href="https://www.wikipedia.org">Visit Wikipedia</a></p> <p><a href="https://learn.modernagecoders.com">Modern Age Coders</a></p> </body> </html></code></pre></div></div> <div class="challenge-card"> <h3>Challenge 5: Image Gallery Layout</h3> <span class="challenge-difficulty medium">Medium</span> <div class="challenge-description"></div><div class="challenge-constraints">Use h1, h2, img (with src and alt), and p tags.</div><button type="button" class="collapsible-toggle" data-target="sol-challenge-5" data-label-closed="Show Solution" data-label-open="Hide Solution" aria-expanded="false">Show Solution</button><div class="collapsible-content" id="sol-challenge-5"><pre><code class="language-python"><!DOCTYPE html> <html> <head> <title>My Gallery</title> </head> <body> <h1>My Gallery</h1> <h2>Sunset at the Beach</h2> <img src="https://via.placeholder.com/400x250" alt="Orange sunset over the ocean"> <p>This photo was taken during our family trip to Goa last summer.</p> <h2>Snowy Mountains</h2> <img src="https://via.placeholder.com/400x250" alt="Mountains covered in snow"> <p>We visited the Himalayas in December and saw real snow for the first time.</p> <h2>City Skyline</h2> <img src="https://via.placeholder.com/400x250" alt="City buildings at night"> <p>The beautiful night lights of Mumbai from the top of a tall building.</p> </body> </html></code></pre></div></div> <div class="challenge-card"> <h3>Challenge 6: Mini Blog Post</h3> <span class="challenge-difficulty hard">Hard</span> <div class="challenge-description"></div><div class="challenge-constraints">Use h1, h2, p, ol, li, hr, and a tags. Everything should be inside body.</div><button type="button" class="collapsible-toggle" data-target="sol-challenge-6" data-label-closed="Show Solution" data-label-open="Hide Solution" aria-expanded="false">Show Solution</button><div class="collapsible-content" id="sol-challenge-6"><pre><code class="language-python"><!DOCTYPE html> <html> <head> <title>My First Blog Post</title> </head> <body> <h1>My First Week Learning HTML</h1> <p>By Priya Sharma</p> <p>Last Monday I started learning HTML at Modern Age Coders. I was nervous at first because I had never written any code before.</p> <p>By the end of the week, I was building my own web pages and sharing them with my family. It was the best week of my life so far.</p> <h2>What I Learned</h2> <ol> <li>How to create a complete HTML page from scratch</li> <li>The difference between block and inline elements</li> <li>How to use images, lists, and links</li> </ol> <hr> <a href="index.html">Back to Home</a> </body> </html></code></pre></div></div> <div class="challenge-card"> <h3>Challenge 7: School Event Invitation</h3> <span class="challenge-difficulty hard">Hard</span> <div class="challenge-description"></div><div class="challenge-constraints">Use DOCTYPE, html, head, body, h1, h2, p, ol, ul, li, and a.</div><button type="button" class="collapsible-toggle" data-target="sol-challenge-7" data-label-closed="Show Solution" data-label-open="Hide Solution" aria-expanded="false">Show Solution</button><div class="collapsible-content" id="sol-challenge-7"><pre><code class="language-python"><!DOCTYPE html> <html> <head> <title>Annual Science Fair</title> </head> <body> <h1>Annual Science Fair 2026</h1> <p>Date: 15 August 2026</p> <p>Venue: School Auditorium, Main Building</p> <h2>Schedule</h2> <ol> <li>9:00 AM - Opening Ceremony</li> <li>10:00 AM - Student Project Exhibitions</li> <li>2:00 PM - Prize Distribution</li> </ol> <h2>Special Guests</h2> <ul> <li>Dr. Ananya Rao - Senior Scientist</li> <li>Mr. Rohan Mehta - Robotics Engineer</li> <li>Ms. Kavya Iyer - Science Teacher of the Year</li> </ul> <a href="register.html">Register Here</a> </body> </html></code></pre></div></div> <div class="challenge-card"> <h3>Challenge 8: Complete Portfolio Home Page</h3> <span class="challenge-difficulty hard">Hard</span> <div class="challenge-description"></div><div class="challenge-constraints">Must include DOCTYPE, html, head (with title), body, h1, h2, p, img, ol, li, a (with mailto:), hr.</div><button type="button" class="collapsible-toggle" data-target="sol-challenge-8" data-label-closed="Show Solution" data-label-open="Hide Solution" aria-expanded="false">Show Solution</button><div class="collapsible-content" id="sol-challenge-8"><pre><code class="language-python"><!DOCTYPE html> <html> <head> <title>My Portfolio</title> </head> <body> <h1>Neha Verma</h1> <p>Hi, I am Neha. I am a 14-year-old student from Bangalore who loves building things with HTML and CSS.</p> <img src="https://via.placeholder.com/200x200" alt="Photo of Neha"> <h2>Projects</h2> <ol> <li>Personal Blog Website</li> <li>Recipe Collection Page</li> <li>Favourite Books Gallery</li> </ol> <h2>Contact</h2> <p>You can email me at <a href="mailto:neha@example.com">neha@example.com</a></p> <p>I would love to hear from you if you have any ideas or feedback.</p> <hr> <p>Made with HTML by Neha Verma</p> </body> </html></code></pre></div></div> </section> <!-- Chapter Practice Navigation --> <nav class="chapter-nav" aria-label="Chapter practice navigation"> <a href="/resources/html-and-css/html-structure-and-boilerplate/practice" class="chapter-nav-card next"> <span class="chapter-nav-label">Next Chapter</span> <span class="chapter-nav-title">HTML Document Structure and Boilerplate</span> </a> </nav> <!-- Notes Link CTA --> <section class="cta-section"> <h2>Need to Review the Concepts?</h2> <p>Go back to the detailed notes for this chapter.</p> <a href="/resources/html-and-css/introduction-to-html" class="cta-button-primary">Read Chapter Notes</a> </section> <!-- Course CTA --> <section class="cta-section cta-course"> <p>Want to learn web development with a live mentor?</p> <a href="/courses/frontend-development-masterclass-for-teens" class="cta-button-outline">Explore our Frontend Masterclass</a> </section> </main> <div id="footer-placeholder"></div> <script src="/js/components-loader.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-python.min.js"></script> <script src="/js/resource-interactive.js"></script> </body> </html>