Bird
Raised Fist0
HTMLmarkup~30 mins

Common HTML mistakes - Mini Project: Build & Apply

Choose your learning style10 modes available
Fixing Common HTML Mistakes
📖 Scenario: You are creating a simple webpage for a local bakery. The page should have a header, a navigation menu, a main section with a welcome message, and a footer with contact info.However, the initial HTML has some common mistakes that can cause problems in browsers or for people using assistive technology.
🎯 Goal: Fix the common HTML mistakes in the bakery webpage so it uses correct tags, proper nesting, and semantic structure. The page should be accessible and display correctly in browsers.
📋 What You'll Learn
Use semantic HTML5 elements like
,
Include with and sections
Add tags for charset and viewport inside
Use proper nesting of tags (no overlapping or missing closing tags)
Add accessible attributes like
Use or for emphasis instead of deprecated tags
Ensure the page title is inside tag</div></div></div></div><div class="project-faq-item"><div class="project-faq-header"><span class="project-faq-title">💡 Why This Matters</span><svg class="project-faq-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"></polyline></svg></div><div class="project-faq-body"><div class="project-context-grid"><div class="project-context-item"><div class="project-context-label">🌍 Real World</div><div class="project-context-value">Webpages must be correctly structured and accessible to work well on all devices and for all users, including those using screen readers.</div></div><div class="project-context-item job"><div class="project-context-label">💼 Career</div><div class="project-context-value">Understanding and fixing common HTML mistakes is essential for front-end developers and web designers to create professional, accessible websites.</div></div></div></div></div></div><div class="project-progress"><div class="project-progress-label"><span>Progress</span><span>0<!-- --> / <!-- -->4<!-- --> steps</span></div><div class="project-progress-bar"><div class="project-progress-fill" style="width:0%"></div></div></div><div class="project-step-nav"><button class="project-step-btn active ">1</button><button class="project-step-btn ">2</button><button class="project-step-btn ">3</button><button class="project-step-btn ">4</button></div></div></article><article class="content-card project-step-container active"><div class="code-articles-card-body "><div class="project-step-header d-flex align-items-center"><div class="project-step-badge ">1</div><div class="project-step-title-wrap "><div class="project-step-title">Create the basic HTML structure</div></div></div><div class="project-instruction">Write the basic HTML skeleton with <code><!DOCTYPE html></code>, <code><html lang="en"></code>, <code><head></code>, and <code><body></code> tags. Inside <code><head></code>, add a <code><title></code> with the text <code>"Local Bakery"</code>. Also add <code><meta charset="UTF-8"></code> and <code><meta name="viewport" content="width=device-width, initial-scale=1.0"></code> tags.</div><div class="project-code-editor"><div class="code-editor-header"><span class="code-editor-label"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M16 18l6-6-6-6"></path><path d="M8 6l-6 6 6 6"></path></svg>HTML</span><div class="code-editor-actions"><button class="code-reset-btn">↺ Reset</button><button class="code-solution-btn"><span class="new-material-symbols icon-hw-22 me-1"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="#d97706"><path d="M602.83-377.25q50.5-50.57 50.5-122.83 0-72.25-50.58-122.75-50.57-50.5-122.83-50.5-72.25 0-122.75 50.58-50.5 50.57-50.5 122.83 0 72.25 50.58 122.75 50.57 50.5 122.83 50.5 72.25 0 122.75-50.58ZM401.5-421.66q-32.17-32.32-32.17-78.5 0-46.17 32.33-78.34 32.32-32.17 78.5-32.17 46.17 0 78.34 32.33 32.17 32.32 32.17 78.5 0 46.17-32.33 78.34-32.32 32.17-78.5 32.17-46.17 0-78.34-32.33ZM234.83-274.67q-110.5-74.66-176.5-192.66-4.33-7.75-6.5-15.93-2.16-8.18-2.16-16.8 0-8.61 2.16-16.75 2.17-8.14 6.5-15.86 66-118 176.5-192.66Q345.33-800 480-800t245.17 74.67q110.5 74.66 176.5 192.66 4.33 7.75 6.5 15.93 2.16 8.18 2.16 16.8 0 8.61-2.16 16.75-2.17 8.14-6.5 15.86-66 118-176.5 192.66Q614.67-200 480-200t-245.17-74.67Z"></path></svg></span>Show Code</button></div></div><textarea class="project-code-textarea" spellCheck="false"> </textarea></div><button class="run-code-btn project-run-btn"><svg viewBox="0 0 24 24" fill="currentColor"><polygon points="5 3 19 12 5 21 5 3"></polygon></svg>Run Code</button><div class="project-hint "><div class="project-hint-title mb-1">Hint</div><div class="hint-content"><p>Start with the standard HTML5 document structure. The <code>lang</code> attribute helps screen readers. The <code>meta</code> tags set character encoding and make the page responsive.</p></div></div></div></article><article class="content-card project-step-container "><div class="code-articles-card-body "><div class="project-step-header d-flex align-items-center"><div class="project-step-badge ">2</div><div class="project-step-title-wrap "><div class="project-step-title">Add semantic page sections</div></div></div><div class="project-instruction">Inside the <code><body></code>, add a <code><header></code> with an <code><h1></code> that says <code>"Welcome to Our Bakery"</code>. Then add a <code><nav></code> with an <code>aria-label="Main navigation"</code> attribute. Inside <code><nav></code>, add an unordered list <code><ul></code> with three list items <code><li></code> containing links <code><a></code> to <code>#home</code>, <code>#menu</code>, and <code>#contact</code> with text <code>Home</code>, <code>Menu</code>, and <code>Contact</code> respectively.</div><div class="project-code-editor"><div class="code-editor-header"><span class="code-editor-label"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M16 18l6-6-6-6"></path><path d="M8 6l-6 6 6 6"></path></svg>HTML</span><div class="code-editor-actions"><button class="code-reset-btn">↺ Reset</button><button class="code-solution-btn"><span class="new-material-symbols icon-hw-22 me-1"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="#d97706"><path d="M602.83-377.25q50.5-50.57 50.5-122.83 0-72.25-50.58-122.75-50.57-50.5-122.83-50.5-72.25 0-122.75 50.58-50.5 50.57-50.5 122.83 0 72.25 50.58 122.75 50.57 50.5 122.83 50.5 72.25 0 122.75-50.58ZM401.5-421.66q-32.17-32.32-32.17-78.5 0-46.17 32.33-78.34 32.32-32.17 78.5-32.17 46.17 0 78.34 32.33 32.17 32.32 32.17 78.5 0 46.17-32.33 78.34-32.32 32.17-78.5 32.17-46.17 0-78.34-32.33ZM234.83-274.67q-110.5-74.66-176.5-192.66-4.33-7.75-6.5-15.93-2.16-8.18-2.16-16.8 0-8.61 2.16-16.75 2.17-8.14 6.5-15.86 66-118 176.5-192.66Q345.33-800 480-800t245.17 74.67q110.5 74.66 176.5 192.66 4.33 7.75 6.5 15.93 2.16 8.18 2.16 16.8 0 8.61-2.16 16.75-2.17 8.14-6.5 15.86-66 118-176.5 192.66Q614.67-200 480-200t-245.17-74.67Z"></path></svg></span>Show Code</button></div></div><textarea class="project-code-textarea" spellCheck="false"> Local Bakery </textarea></div><button class="run-code-btn project-run-btn"><svg viewBox="0 0 24 24" fill="currentColor"><polygon points="5 3 19 12 5 21 5 3"></polygon></svg>Run Code</button><div class="project-hint "><div class="project-hint-title mb-1">Hint</div><div class="hint-content"><p>Use semantic tags for page sections. The <code>aria-label</code> on <code>nav</code> helps screen readers understand the menu purpose.</p></div></div></div></article><article class="content-card project-step-container "><div class="code-articles-card-body "><div class="project-step-header d-flex align-items-center"><div class="project-step-badge ">3</div><div class="project-step-title-wrap "><div class="project-step-title">Add main content with proper tags</div></div></div><div class="project-instruction">Below the <code><nav></code>, add a <code><main></code> section. Inside <code><main></code>, add a paragraph <code><p></code> that says <code>"Freshly baked bread and pastries every day."</code> Use <code><strong></code> tags to emphasize the word <code>"Freshly"</code>.</div><div class="project-code-editor"><div class="code-editor-header"><span class="code-editor-label"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M16 18l6-6-6-6"></path><path d="M8 6l-6 6 6 6"></path></svg>HTML</span><div class="code-editor-actions"><button class="code-reset-btn">↺ Reset</button><button class="code-solution-btn"><span class="new-material-symbols icon-hw-22 me-1"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="#d97706"><path d="M602.83-377.25q50.5-50.57 50.5-122.83 0-72.25-50.58-122.75-50.57-50.5-122.83-50.5-72.25 0-122.75 50.58-50.5 50.57-50.5 122.83 0 72.25 50.58 122.75 50.57 50.5 122.83 50.5 72.25 0 122.75-50.58ZM401.5-421.66q-32.17-32.32-32.17-78.5 0-46.17 32.33-78.34 32.32-32.17 78.5-32.17 46.17 0 78.34 32.33 32.17 32.32 32.17 78.5 0 46.17-32.33 78.34-32.32 32.17-78.5 32.17-46.17 0-78.34-32.33ZM234.83-274.67q-110.5-74.66-176.5-192.66-4.33-7.75-6.5-15.93-2.16-8.18-2.16-16.8 0-8.61 2.16-16.75 2.17-8.14 6.5-15.86 66-118 176.5-192.66Q345.33-800 480-800t245.17 74.67q110.5 74.66 176.5 192.66 4.33 7.75 6.5 15.93 2.16 8.18 2.16 16.8 0 8.61-2.16 16.75-2.17 8.14-6.5 15.86-66 118-176.5 192.66Q614.67-200 480-200t-245.17-74.67Z"></path></svg></span>Show Code</button></div></div><textarea class="project-code-textarea" spellCheck="false"> Local Bakery Welcome to Our Bakery Home Menu Contact </textarea></div><button class="run-code-btn project-run-btn"><svg viewBox="0 0 24 24" fill="currentColor"><polygon points="5 3 19 12 5 21 5 3"></polygon></svg>Run Code</button><div class="project-hint "><div class="project-hint-title mb-1">Hint</div><div class="hint-content"><p>The <code>main</code> tag holds the main content. Use <code>strong</code> to highlight important words instead of deprecated tags like <code>b</code>.</p></div></div></div></article><article class="content-card project-step-container "><div class="code-articles-card-body "><div class="project-step-header d-flex align-items-center"><div class="project-step-badge ">4</div><div class="project-step-title-wrap "><div class="project-step-title">Add footer with contact information</div></div></div><div class="project-instruction">At the bottom of the <code><body></code>, add a <code><footer></code> section. Inside it, add a paragraph <code><p></code> with the text <code>"Contact us at "</code> followed by an email link <code><a href="mailto:info@localbakery.com">info@localbakery.com</a></code>. Make sure all tags are properly closed and nested.</div><div class="project-code-editor"><div class="code-editor-header"><span class="code-editor-label"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M16 18l6-6-6-6"></path><path d="M8 6l-6 6 6 6"></path></svg>HTML</span><div class="code-editor-actions"><button class="code-reset-btn">↺ Reset</button><button class="code-solution-btn"><span class="new-material-symbols icon-hw-22 me-1"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="#d97706"><path d="M602.83-377.25q50.5-50.57 50.5-122.83 0-72.25-50.58-122.75-50.57-50.5-122.83-50.5-72.25 0-122.75 50.58-50.5 50.57-50.5 122.83 0 72.25 50.58 122.75 50.57 50.5 122.83 50.5 72.25 0 122.75-50.58ZM401.5-421.66q-32.17-32.32-32.17-78.5 0-46.17 32.33-78.34 32.32-32.17 78.5-32.17 46.17 0 78.34 32.33 32.17 32.32 32.17 78.5 0 46.17-32.33 78.34-32.32 32.17-78.5 32.17-46.17 0-78.34-32.33ZM234.83-274.67q-110.5-74.66-176.5-192.66-4.33-7.75-6.5-15.93-2.16-8.18-2.16-16.8 0-8.61 2.16-16.75 2.17-8.14 6.5-15.86 66-118 176.5-192.66Q345.33-800 480-800t245.17 74.67q110.5 74.66 176.5 192.66 4.33 7.75 6.5 15.93 2.16 8.18 2.16 16.8 0 8.61-2.16 16.75-2.17 8.14-6.5 15.86-66 118-176.5 192.66Q614.67-200 480-200t-245.17-74.67Z"></path></svg></span>Show Code</button></div></div><textarea class="project-code-textarea" spellCheck="false"> Local Bakery Welcome to Our Bakery Home Menu Contact Freshly baked bread and pastries every day. </textarea></div><button class="run-code-btn project-run-btn"><svg viewBox="0 0 24 24" fill="currentColor"><polygon points="5 3 19 12 5 21 5 3"></polygon></svg>Run Code</button><div class="project-hint "><div class="project-hint-title mb-1">Hint</div><div class="hint-content"><p>The footer usually contains contact info or copyright. Use <code>mailto:</code> links for email addresses.</p></div></div></div></article></div><div><article class="content-card" id="practice"><div class="code-articles-card-header justify-content-between"><div class="d-flex align-items-center" style="gap:12px"><span class="card-icon nofill intro"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" class="blue-icon-color site-fs-20" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path><path d="M12 7a5 5 0 1 0 5 5"></path><path d="M13 3.055a9 9 0 1 0 7.941 7.945"></path><path d="M15 6v3h3l3 -3h-3v-3z"></path><path d="M15 9l-3 3"></path></svg></span><h2 class="codefly-card-title mb-0 pb-0">Practice</h2></div><span class="site-fs-15">(<!-- -->1<!-- -->/<!-- -->5<!-- -->)</span></div><div class="code-articles-card-body" data-theme="light"><div class=""><div class="mb-4"><div class="practice-content"><div class="text-pre-wrap dbd-txt-theme-intense pb-3">1<!-- -->. <!-- -->Which of the following is a common mistake when writing HTML tags?</div></div><div class="question-pills-container " style="padding-top:unset"><span class="level-badge">easy</span></div></div><div class=""><div class="practice-options"><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>A<!-- -->. <!-- -->Writing comments with <code><!-- comment --></code></span></div><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>B<!-- -->. <!-- -->Using lowercase letters for tags</span></div><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>C<!-- -->. <!-- -->Adding spaces between attributes</span></div><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>D<!-- -->. <!-- -->Not closing tags properly, like forgetting <code></p></code></span></div></div><div class="py-3"><button class="site-btn" style="width:200px" disabled="">Verify</button></div></div><div class="py-2 d-none"><div class="practice-helper-btns-wrapper"></div><div class="practice-expanation-div "><div class="practice-expanation-div-body"><div class="practice-helper-content helper-solution-box"><h4 class="helper-solution-box-title">Solution</h4><div class="practice-helper-body"><ol><li><h4>Step 1: Understand proper tag closure</h4>HTML tags like <code><p></code> must be closed with <code></p></code> to define content boundaries.</li><li><h4>Step 2: Identify the mistake</h4>Not closing tags properly breaks the page structure and can cause rendering issues.</li><li><h4>Final Answer:</h4><strong>Not closing tags properly, like forgetting </p></strong> -> Option D</li><li><h4>Quick Check:</h4>Close tags properly = A [OK]</li></ol></div></div></div></div><div class="practice-expanation-div "><div class="practice-expanation-div-body"><div class="practice-helper-content helper-hint-box"><div class="practice-helper-body"><strong class="helper-hint-box-title">Hint: </strong>Always match opening and closing tags exactly [OK]</div></div></div></div><div class="practice-expanation-div "><div class="practice-expanation-div-body"><div class="practice-helper-content helper-mistakes-box"><div class="practice-helper-body"><strong class="helper-mistakes-box-title">Common Mistakes: </strong><ul class="ph-mistakes-list"><li class="ph-mistake-item mb-0">Forgetting to close tags</li><li class="ph-mistake-item mb-0">Self-closing tags without slash</li><li class="ph-mistake-item mb-0">Mismatched tag names</li></ul></div></div></div></div></div></div><div class="d-none"><div class="mb-4"><div class="practice-content"><div class="text-pre-wrap dbd-txt-theme-intense pb-3">2<!-- -->. <!-- -->Which of these is the correct way to write an image tag with an alt attribute?</div></div><div class="question-pills-container " style="padding-top:unset"><span class="level-badge">easy</span></div></div><div class=""><div class="practice-options"><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>A<!-- -->. <code><img src='cat.jpg' alt='cat'></code></span></div><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>B<!-- -->. <code><img src="cat.jpg" alt=cat></code></span></div><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>C<!-- -->. <code><img src=cat.jpg alt=cat></code></span></div><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>D<!-- -->. <code><img src=cat.jpg alt='cat'></code></span></div></div><div class="py-3"><button class="site-btn" style="width:200px" disabled="">Verify</button></div></div><div class="py-2 d-none"><div class="practice-helper-btns-wrapper"></div><div class="practice-expanation-div "><div class="practice-expanation-div-body"><div class="practice-helper-content helper-solution-box"><h4 class="helper-solution-box-title">Solution</h4><div class="practice-helper-body"><ol><li><h4>Step 1: Check attribute quoting rules</h4>HTML requires attribute values to be in quotes, either single or double quotes.</li><li><h4>Step 2: Find the option with all attributes quoted</h4><code><img src='cat.jpg' alt='cat'></code> uses single quotes around both <code>src</code> and <code>alt</code> values correctly.</li><li><h4>Final Answer:</h4><strong><img src='cat.jpg' alt='cat'></strong> -> Option A</li><li><h4>Quick Check:</h4>Attributes need quotes = C [OK]</li></ol></div></div></div></div><div class="practice-expanation-div "><div class="practice-expanation-div-body"><div class="practice-helper-content helper-hint-box"><div class="practice-helper-body"><strong class="helper-hint-box-title">Hint: </strong>Always put quotes around attribute values [OK]</div></div></div></div><div class="practice-expanation-div "><div class="practice-expanation-div-body"><div class="practice-helper-content helper-mistakes-box"><div class="practice-helper-body"><strong class="helper-mistakes-box-title">Common Mistakes: </strong><ul class="ph-mistakes-list"><li class="ph-mistake-item mb-0">Missing quotes around attribute values</li><li class="ph-mistake-item mb-0">Mixing quote types incorrectly</li><li class="ph-mistake-item mb-0">Using invalid characters in attributes</li></ul></div></div></div></div></div></div><div class="d-none"><div class="mb-4"><div class="practice-content"><div class="text-pre-wrap dbd-txt-theme-intense pb-3">3<!-- -->. <!-- -->What will the browser display when rendering this HTML snippet? <pre><div><p>Hello<div>World</p></div></pre></div></div><div class="question-pills-container " style="padding-top:unset"><span class="level-badge">medium</span></div></div><div class=""><div class="practice-options"><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>A<!-- -->. <!-- -->Hello followed by World outside the paragraph</span></div><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>B<!-- -->. <!-- -->HelloWorld inside nested div and p tags correctly</span></div><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>C<!-- -->. <!-- -->Only Hello displayed, World ignored</span></div><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>D<!-- -->. <!-- -->A rendering error or broken layout</span></div></div><div class="py-3"><button class="site-btn" style="width:200px" disabled="">Verify</button></div></div><div class="py-2 d-none"><div class="practice-helper-btns-wrapper"></div><div class="practice-expanation-div "><div class="practice-expanation-div-body"><div class="practice-helper-content helper-solution-box"><h4 class="helper-solution-box-title">Solution</h4><div class="practice-helper-body"><ol><li><h4>Step 1: Analyze tag nesting rules</h4>A <code><div></code> cannot be inside a <code><p></code> tag because <code><p></code> cannot contain block elements like <code><div></code>.</li><li><h4>Step 2: Understand browser correction behavior</h4>The browser closes the <code><p></code> before the inner <code><div></code>, so "World" is outside the paragraph.</li><li><h4>Final Answer:</h4><strong>Hello followed by World outside the paragraph</strong> -> Option A</li><li><h4>Quick Check:</h4>Invalid nesting moves content outside = A [OK]</li></ol></div></div></div></div><div class="practice-expanation-div "><div class="practice-expanation-div-body"><div class="practice-helper-content helper-hint-box"><div class="practice-helper-body"><strong class="helper-hint-box-title">Hint: </strong>Block tags can't go inside <p> tags [OK]</div></div></div></div><div class="practice-expanation-div "><div class="practice-expanation-div-body"><div class="practice-helper-content helper-mistakes-box"><div class="practice-helper-body"><strong class="helper-mistakes-box-title">Common Mistakes: </strong><ul class="ph-mistakes-list"><li class="ph-mistake-item mb-0">Placing block elements inside <p></li><li class="ph-mistake-item mb-0">Assuming browser ignores invalid nesting</li><li class="ph-mistake-item mb-0">Not closing tags properly</li></ul></div></div></div></div></div></div><div class="d-none"><div class="mb-4"><div class="practice-content"><div class="text-pre-wrap dbd-txt-theme-intense pb-3">4<!-- -->. <!-- -->Identify the error in this HTML snippet: <pre><ul> <li>Item 1 <li>Item 2</li> </ul></pre></div></div><div class="question-pills-container " style="padding-top:unset"><span class="level-badge">medium</span></div></div><div class=""><div class="practice-options"><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>A<!-- -->. <!-- -->Using <code><li></code> inside <code><ul></code> is invalid</span></div><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>B<!-- -->. <!-- -->Missing closing tag for first <code><li></code> element</span></div><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>C<!-- -->. <!-- -->The <code><ul></code> tag should be <code><ol></code></span></div><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>D<!-- -->. <!-- -->The second <code><li></code> tag is self-closing incorrectly</span></div></div><div class="py-3"><button class="site-btn" style="width:200px" disabled="">Verify</button></div></div><div class="py-2 d-none"><div class="practice-helper-btns-wrapper"></div><div class="practice-expanation-div "><div class="practice-expanation-div-body"><div class="practice-helper-content helper-solution-box"><h4 class="helper-solution-box-title">Solution</h4><div class="practice-helper-body"><ol><li><h4>Step 1: Check list item tags</h4>Each <code><li></code> must be properly closed to separate list items.</li><li><h4>Step 2: Identify missing closing tag</h4>The first <code><li></code> is not closed, so the browser may merge both items incorrectly.</li><li><h4>Final Answer:</h4><strong>Missing closing tag for first <li> element</strong> -> Option B</li><li><h4>Quick Check:</h4>Close all </li><li> tags properly = B [OK]</li></ol></div></div></div></div><div class="practice-expanation-div "><div class="practice-expanation-div-body"><div class="practice-helper-content helper-hint-box"><div class="practice-helper-body"><strong class="helper-hint-box-title">Hint: </strong>Close every <li> tag to separate list items [OK]</div></div></div></div><div class="practice-expanation-div "><div class="practice-expanation-div-body"><div class="practice-helper-content helper-mistakes-box"><div class="practice-helper-body"><strong class="helper-mistakes-box-title">Common Mistakes: </strong><ul class="ph-mistakes-list"><li class="ph-mistake-item mb-0">Omitting closing </li><li class="ph-mistake-item mb-0">Confusing <ul> and <ol></li><li class="ph-mistake-item mb-0">Incorrect nesting of list tags</li></ul></div></div></div></div></div></div><div class="d-none"><div class="mb-4"><div class="practice-content"><div class="text-pre-wrap dbd-txt-theme-intense pb-3">5<!-- -->. <!-- -->You want to create a form with a label and input that is accessible and correct. Which snippet fixes the common mistake below? <pre><label>Name</label> <input type="text" id="name"></pre></div></div><div class="question-pills-container " style="padding-top:unset"><span class="level-badge">hard</span></div></div><div class=""><div class="practice-options"><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>A<!-- -->. <code><label id="name">Name</label>\n<input type="text"></code></span></div><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>B<!-- -->. <code><label>Name<input type="text" id="name"></label></code></span></div><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>C<!-- -->. <code><label for="name">Name</label>\n<input type="text" id="name"></code></span></div><div class="practice-option-label" style="cursor:pointer"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 24 24" class="txt-dark-grey-color site-fs-18 me-2 me-md-3" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"></path></svg><span>D<!-- -->. <code><input type="text" id="name">\n<label>Name</label></code></span></div></div><div class="py-3"><button class="site-btn" style="width:200px" disabled="">Verify</button></div></div><div class="py-2 d-none"><div class="practice-helper-btns-wrapper"></div><div class="practice-expanation-div "><div class="practice-expanation-div-body"><div class="practice-helper-content helper-solution-box"><h4 class="helper-solution-box-title">Solution</h4><div class="practice-helper-body"><ol><li><h4>Step 1: Understand label-input association</h4>Labels should be linked to inputs using the <code>for</code> attribute matching the input's <code>id</code>.</li><li><h4>Step 2: Check options for correct association</h4><code><label for="name">Name</label>\n<input type="text" id="name"></code> uses <code>for="name"</code> on label and <code>id="name"</code> on input, making it accessible and correct.</li><li><h4>Final Answer:</h4><strong><label for="name">Name</label>\n<input type="text" id="name"></strong> -> Option C</li><li><h4>Quick Check:</h4>Use for and id to link label and input = D [OK]</li></ol></div></div></div></div><div class="practice-expanation-div "><div class="practice-expanation-div-body"><div class="practice-helper-content helper-hint-box"><div class="practice-helper-body"><strong class="helper-hint-box-title">Hint: </strong>Use label's for attribute matching input's id [OK]</div></div></div></div><div class="practice-expanation-div "><div class="practice-expanation-div-body"><div class="practice-helper-content helper-mistakes-box"><div class="practice-helper-body"><strong class="helper-mistakes-box-title">Common Mistakes: </strong><ul class="ph-mistakes-list"><li class="ph-mistake-item mb-0">Not linking label and input</li><li class="ph-mistake-item mb-0">Wrapping input inside label incorrectly</li><li class="ph-mistake-item mb-0">Using id on label instead of for</li></ul></div></div></div></div></div></div><div class="d-flex align-items-center justify-content-between mt-4"><button class="secondary-site-btn" disabled=""><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" aria-hidden="true" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19l-7-7 7-7"></path></svg> Previous</button><div class="practice-question-toggles-wrapper"><button class="practice-question-toggle-btn active ">1</button><button class="practice-question-toggle-btn ">2</button><button class="practice-question-toggle-btn ">3</button><button class="practice-question-toggle-btn ">4</button><button class="practice-question-toggle-btn ">5</button></div><button class="secondary-site-btn">Next <svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" aria-hidden="true" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"></path></svg></button></div></div></article></div><div id="mock" class="mtc-wrapper"><div class="mtc-card-container"><div class="mtc-card pulse-effect"><span class="mtc-recommended-badge">Recommended</span><div class="mtc-icon-wrap"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" color="#fff" style="color:#fff" height="24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"></path><path d="M12 7a5 5 0 1 0 5 5"></path><path d="M13 3.055a9 9 0 1 0 7.941 7.945"></path><path d="M15 6v3h3l3 -3h-3v-3z"></path><path d="M15 9l-3 3"></path></svg></div><h4 class="mtc-heading">Ready to prove it?</h4><p class="mtc-sub">Pass the test and this pattern moves <span class="mtc-state-pill">unknown</span> <svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 512 512" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="m268 112 144 144-144 144m124-144H100"></path></svg> <span class="mtc-state-pill good">strong</span> <span class="d-inline-block">while earning <span class="weight-800">+1 Grip</span></span> toward your certificate.</p><div class="mtc-pills"><span class="mtc-pill"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line></svg>10 questions</span><span class="mtc-pill"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 512 512" height="13" width="13" xmlns="http://www.w3.org/2000/svg"><path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"></path></svg>~5 min</span><span class="mtc-pill"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline></svg>easy <svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 512 512" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="m268 112 144 144-144 144m124-144H100"></path></svg> hard</span></div><div class="mtc-cta-wrap"><button type="button" class="mtc-cta-btn">Take the Test <svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 512 512" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="48" d="m268 112 144 144-144 144m124-144H100"></path></svg></button></div></div></div></div></div></main><div class="rpi-float-wrap"><button type="button" class="rpi-float-btn" aria-label="Report an issue"><svg stroke="currentColor" fill="none" stroke-width="2" viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"></path><line x1="4" y1="22" x2="4" y2="15"></line></svg><span class="rpi-float-label">Report Issue</span></button></div></div><div style="display:none"><div id="ad-management-config-settings" data-blocklist-all="1"></div></div> <script src="/_next/static/chunks/webpack-28170116499ad51b.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:HL[\"/_next/static/css/d071dca61fbb01bf.css\",\"style\"]\n2:HL[\"/_next/static/css/907864b6faf28c32.css\",\"style\"]\n3:HL[\"/_next/static/css/ada9a246b4e9c7f9.css\",\"style\"]\n4:HL[\"/_next/static/css/725c7861d1898ba8.css\",\"style\"]\n5:HL[\"/_next/static/css/c478212c00f26f15.css\",\"style\"]\n6:HL[\"/_next/static/css/989afc350a4b3a28.css\",\"style\"]\n7:HL[\"/_next/static/css/ccfdf35169bd162c.css\",\"style\"]\n8:HL[\"/_next/static/css/417e7aee3e688b57.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"9:I[95751,[],\"\"]\nc:I[39275,[],\"\"]\n12:I[61343,[],\"\"]\n13:I[84080,[\"8726\",\"static/chunks/8726-fd60949e252ac8d1.js\",\"3185\",\"static/chunks/app/layout-e2ef1005801dc1ed.js\"],\"\"]\n14:I[88726,[\"8726\",\"static/chunks/8726-fd60949e252ac8d1.js\",\"3185\",\"static/chunks/app/layout-e2ef1005801dc1ed.js\"],\"Toaster\"]\n15:I[20154,[\"8422\",\"static/chunks/66ec4792-3d3220126f3e74ee.js\",\"6950\",\"static/chunks/f8025e75-5dd99dd1a689ea97.js\",\"6795\",\"static/chunks/6795-1b544390b9b7cb09.js\",\"5214\",\"static/chunks/5214-cc3a3a8017cc6e4d.js\",\"7078\",\"static/chunks/7078-09556dce22020d83.js\",\"3154\",\"static/chunks/3154-0aa2f15561902c10.js\",\"7562\",\"static/chunks/7562-b71a43604fd32292.js\",\"4481\",\"static/chunks/4481-14671e1e3d1ffff7.js\",\"4662\",\"static/chunks/4662-1ac1c089600dcc35.js\",\"9160\",\"static/chunks/app/not-found-b9aad74520590312.js\"],\"default\"]\n16:I[78598,[\"8726\",\"static/chunks/8726-fd60949e252ac8d1.js\",\"3185\",\"static/chunks/app/layout-e2ef1005801dc1ed.js\"],\"default\"]\n17:I[56192,[\"8726\",\"static/chunks/8726-fd60949e252ac8d1.js\",\"3185\",\"static/chunks/app/layout-e2ef1005801dc1ed.js\"],\"default\"]\n19:I[76130,[],\"\"]\nd:[\"lang\",\"en\",\"d\"]\ne:[\"subject\",\"html\",\"d\"]\nf:[\"part\",\"part-1\",\"d\"]\n10:[\"pattern\",\"html-common-html-mistakes\",\"d\"]\n11:[\"mode\",\"project\",\"oc\"]\n1a:[]\n"])</script><script>self.__next_f.push([1,"0:[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/d071dca61fbb01bf.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/907864b6faf28c32.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],[\"$\",\"$L9\",null,{\"buildId\":\"leyaa-prod-build-id\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/en/codefly/learn/html/part-1/html-common-html-mistakes/project\",\"initialTree\":[\"\",{\"children\":[[\"lang\",\"en\",\"d\"],{\"children\":[\"codefly\",{\"children\":[\"learn\",{\"children\":[[\"subject\",\"html\",\"d\"],{\"children\":[[\"part\",\"part-1\",\"d\"],{\"children\":[[\"pattern\",\"html-common-html-mistakes\",\"d\"],{\"children\":[[\"mode\",\"project\",\"oc\"],{\"children\":[\"__PAGE__\",{}]}]}]}]}]}]}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[[\"lang\",\"en\",\"d\"],{\"children\":[\"codefly\",{\"children\":[\"learn\",{\"children\":[[\"subject\",\"html\",\"d\"],{\"children\":[[\"part\",\"part-1\",\"d\"],{\"children\":[[\"pattern\",\"html-common-html-mistakes\",\"d\"],{\"children\":[[\"mode\",\"project\",\"oc\"],{\"children\":[\"__PAGE__\",{},[[\"$La\",\"$Lb\"],null],null]},[\"$\",\"$Lc\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$d\",\"children\",\"codefly\",\"children\",\"learn\",\"children\",\"$e\",\"children\",\"$f\",\"children\",\"$10\",\"children\",\"$11\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L12\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/ada9a246b4e9c7f9.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/725c7861d1898ba8.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/c478212c00f26f15.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"3\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/989afc350a4b3a28.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"4\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/ccfdf35169bd162c.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"5\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/417e7aee3e688b57.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]]}],null]},[\"$\",\"$Lc\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$d\",\"children\",\"codefly\",\"children\",\"learn\",\"children\",\"$e\",\"children\",\"$f\",\"children\",\"$10\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L12\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[\"$\",\"$Lc\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$d\",\"children\",\"codefly\",\"children\",\"learn\",\"children\",\"$e\",\"children\",\"$f\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L12\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[\"$\",\"$Lc\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$d\",\"children\",\"codefly\",\"children\",\"learn\",\"children\",\"$e\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L12\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[\"$\",\"$Lc\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$d\",\"children\",\"codefly\",\"children\",\"learn\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L12\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[\"$\",\"$Lc\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$d\",\"children\",\"codefly\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L12\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[\"$\",\"$Lc\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"$d\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L12\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"meta\",null,{\"name\":\"theme-color\",\"content\":\"#5f56fe\"}],[\"$\",\"meta\",null,{\"name\":\"msapplication-TileColor\",\"content\":\"#5f56fe\"}],[\"$\",\"$L13\",null,{\"src\":\"https://www.googletagmanager.com/gtag/js?id=G-N2NY2DMMDW\",\"strategy\":\"afterInteractive\"}],[\"$\",\"$L13\",null,{\"id\":\"google-analytics\",\"strategy\":\"afterInteractive\",\"children\":\"\\n window.dataLayer = window.dataLayer || [];\\n function gtag(){dataLayer.push(arguments);}\\n gtag('js', new Date());\\n gtag('config', 'G-N2NY2DMMDW', {\\n page_path: window.location.pathname,\\n });\\n \"}],[\"$\",\"script\",null,{\"async\":true,\"src\":\"https://www.googletagmanager.com/gtag/js?id=AW-18214378714\"}],[\"$\",\"$L13\",null,{\"children\":\"\\n window.dataLayer = window.dataLayer || [];\\n function gtag() {\\n dataLayer.push(arguments);\\n }\\n gtag('js', new Date());\\n gtag('config', 'AW-18214378714');\\n \"}],[\"$\",\"script\",null,{\"data-grow-initializer\":\"\",\"suppressHydrationWarning\":true,\"dangerouslySetInnerHTML\":{\"__html\":\"!(function(){window.growMe||((window.growMe=function(e){window.growMe._.push(e);}),(window.growMe._=[]));var e=document.createElement(\\\"script\\\");(e.type=\\\"text/javascript\\\"),(e.src=\\\"https://faves.grow.me/main.js\\\"),(e.defer=!0),e.setAttribute(\\\"data-grow-faves-site-id\\\",\\\"U2l0ZTo0MGIxZDBlZC0wNzdlLTQ0NjgtOThmOC1kNDYyZGMwM2IwMWY=\\\");var t=document.getElementsByTagName(\\\"script\\\")[0];t.parentNode.insertBefore(e,t);})();\"}}],[\"$\",\"$L13\",null,{\"src\":\"//scripts.scriptwrapper.com/tags/40b1d0ed-077e-4468-98f8-d462dc03b01f.js\",\"strategy\":\"afterInteractive\",\"data-noptimize\":\"1\",\"data-cfasync\":\"false\"}],[\"$\",\"script\",null,{\"type\":\"application/ld+json\",\"suppressHydrationWarning\":true,\"dangerouslySetInnerHTML\":{\"__html\":\"{\\\"@context\\\":\\\"https://schema.org\\\",\\\"@type\\\":\\\"WebApplication\\\",\\\"name\\\":\\\"Leyaa.ai\\\",\\\"description\\\":\\\"Leyaa.ai builds learning intelligence that understands how you learn - guiding what to study, how to practice, and when to move forward.\\\",\\\"url\\\":\\\"https://leyaa.ai\\\",\\\"applicationCategory\\\":\\\"EducationalApplication\\\",\\\"operatingSystem\\\":\\\"Web\\\",\\\"offers\\\":{\\\"@type\\\":\\\"Offer\\\",\\\"price\\\":\\\"0\\\",\\\"priceCurrency\\\":\\\"USD\\\"},\\\"creator\\\":{\\\"@type\\\":\\\"Organization\\\",\\\"name\\\":\\\"Leyaa.ai\\\"}}\"}}],[\"$\",\"$L13\",null,{\"id\":\"clarity-script\",\"strategy\":\"afterInteractive\",\"dangerouslySetInnerHTML\":{\"__html\":\"\\n (function(c,l,a,r,i,t,y){\\n c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};\\n t=l.createElement(r);t.async=1;t.src=\\\"https://www.clarity.ms/tag/\\\"+i;\\n y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);\\n })(window, document, \\\"clarity\\\", \\\"script\\\", \\\"w4gxh6rdmh\\\");\\n \"}}]]}],[\"$\",\"body\",null,{\"children\":[[\"$\",\"$L14\",null,{\"containerStyle\":{\"top\":70}}],[\"$\",\"$Lc\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L12\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[\"$\",\"$L15\",null,{}],\"notFoundStyles\":[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/c478212c00f26f15.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\"}]],\"styles\":null}],[\"$\",\"$L16\",null,{}],\" \",[\"$\",\"$L17\",null,{}]]}]]}],null],null],\"couldBeIntercepted\":false,\"initialHead\":[false,\"$L18\"],\"globalErrorComponent\":\"$19\",\"missingSlots\":\"$W1a\"}]]\n"])</script><script>self.__next_f.push([1,"18:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"title\",\"2\",{\"children\":\"Common HTML mistakes Mini Project - Build \u0026 Apply | Leyaa.ai\"}],[\"$\",\"meta\",\"3\",{\"name\":\"description\",\"content\":\"Apply Common HTML mistakes in a hands-on mini project. Build something real with step-by-step guidance. Learn by doing, not just reading.\"}],[\"$\",\"meta\",\"4\",{\"name\":\"author\",\"content\":\"Leyaa.ai\"}],[\"$\",\"link\",\"5\",{\"rel\":\"manifest\",\"href\":\"/manifest.json\",\"crossOrigin\":\"use-credentials\"}],[\"$\",\"meta\",\"6\",{\"name\":\"keywords\",\"content\":\"learning intelligence,AI learning,personalized learning,adaptive learning,study guide,exam preparation,learning platform,education technology,edtech,smart learning\"}],[\"$\",\"meta\",\"7\",{\"name\":\"creator\",\"content\":\"Leyaa.ai\"}],[\"$\",\"meta\",\"8\",{\"name\":\"publisher\",\"content\":\"Leyaa.ai\"}],[\"$\",\"meta\",\"9\",{\"name\":\"robots\",\"content\":\"index, follow\"}],[\"$\",\"meta\",\"10\",{\"name\":\"googlebot\",\"content\":\"index, follow, max-image-preview:large, max-snippet:-1\"}],[\"$\",\"meta\",\"11\",{\"name\":\"mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"12\",{\"name\":\"content-language\",\"content\":\"en\"}],[\"$\",\"link\",\"13\",{\"rel\":\"canonical\",\"href\":\"https://leyaa.ai/codefly/learn/html/part-1/html-common-html-mistakes/project\"}],[\"$\",\"link\",\"14\",{\"rel\":\"alternate\",\"hrefLang\":\"en\",\"href\":\"https://leyaa.ai/codefly/learn/html/part-1/html-common-html-mistakes/project\"}],[\"$\",\"link\",\"15\",{\"rel\":\"alternate\",\"hrefLang\":\"x-default\",\"href\":\"https://leyaa.ai/codefly/learn/html/part-1/html-common-html-mistakes/project\"}],[\"$\",\"meta\",\"16\",{\"name\":\"apple-mobile-web-app-capable\",\"content\":\"yes\"}],[\"$\",\"meta\",\"17\",{\"name\":\"apple-mobile-web-app-title\",\"content\":\"Leyaa\"}],[\"$\",\"meta\",\"18\",{\"name\":\"apple-mobile-web-app-status-bar-style\",\"content\":\"default\"}],[\"$\",\"meta\",\"19\",{\"property\":\"og:title\",\"content\":\"Common HTML mistakes Mini Project - Build \u0026 Apply | Leyaa.ai\"}],[\"$\",\"meta\",\"20\",{\"property\":\"og:description\",\"content\":\"Apply Common HTML mistakes in a hands-on mini project. Build something real with step-by-step guidance. Learn by doing, not just reading.\"}],[\"$\",\"meta\",\"21\",{\"property\":\"og:url\",\"content\":\"https://leyaa.ai/codefly/learn/html/part-1/html-common-html-mistakes/project\"}],[\"$\",\"meta\",\"22\",{\"property\":\"og:locale\",\"content\":\"en_US\"}],[\"$\",\"meta\",\"23\",{\"property\":\"og:image\",\"content\":\"https://leyaa.ai/Assets/metaImages/leyaa-preview-image.png\"}],[\"$\",\"meta\",\"24\",{\"property\":\"og:image:width\",\"content\":\"1200\"}],[\"$\",\"meta\",\"25\",{\"property\":\"og:image:height\",\"content\":\"630\"}],[\"$\",\"meta\",\"26\",{\"property\":\"og:image:alt\",\"content\":\"Common HTML mistakes Mini Project - Build \u0026 Apply\"}],[\"$\",\"meta\",\"27\",{\"property\":\"og:type\",\"content\":\"article\"}],[\"$\",\"meta\",\"28\",{\"name\":\"twitter:card\",\"content\":\"summary_large_image\"}],[\"$\",\"meta\",\"29\",{\"name\":\"twitter:site\",\"content\":\"@leyaaai\"}],[\"$\",\"meta\",\"30\",{\"name\":\"twitter:creator\",\"content\":\"@leyaaai\"}],[\"$\",\"meta\",\"31\",{\"name\":\"twitter:title\",\"content\":\"Common HTML mistakes Mini Project - Build \u0026 Apply | Leyaa.ai\"}],[\"$\",\"meta\",\"32\",{\"name\":\"twitter:description\",\"content\":\"Apply Common HTML mistakes in a hands-on mini project. Build something real with step-by-step guidance. Learn by doing, not just reading.\"}],[\"$\",\"meta\",\"33\",{\"name\":\"twitter:image\",\"content\":\"https://leyaa.ai/Assets/metaImages/leyaa-preview-image.png\"}],[\"$\",\"link\",\"34\",{\"rel\":\"icon\",\"href\":\"/leyaa-logo.png\"}],[\"$\",\"link\",\"35\",{\"rel\":\"apple-touch-icon\",\"href\":\"https://leyaa.ai/Assets/Favicons/apple-touch-icon.png\"}],[\"$\",\"meta\",\"36\",{\"name\":\"next-size-adjust\"}]]\n"])</script><script>self.__next_f.push([1,"a:null\n"])</script><script>self.__next_f.push([1,"1c:I[43489,[\"8422\",\"static/chunks/66ec4792-3d3220126f3e74ee.js\",\"6950\",\"static/chunks/f8025e75-5dd99dd1a689ea97.js\",\"6051\",\"static/chunks/795d4814-8b40e2eae05948ca.js\",\"5706\",\"static/chunks/9c4e2130-0ef90d15550fcb15.js\",\"522\",\"static/chunks/94730671-fd9628eddbd5107b.js\",\"7699\",\"static/chunks/8e1d74a4-d3c1e3cfb4eeea98.js\",\"7240\",\"static/chunks/53c13509-a3e4ac0640ae03f2.js\",\"9956\",\"static/chunks/ee560e2c-27ba7a66c659fa82.js\",\"2516\",\"static/chunks/f7333993-31ab72eb9b202e3d.js\",\"1779\",\"static/chunks/0e762574-cee3ec2351d97ca0.js\",\"6795\",\"static/chunks/6795-1b544390b9b7cb09.js\",\"5214\",\"static/chunks/5214-cc3a3a8017cc6e4d.js\",\"7078\",\"static/chunks/7078-09556dce22020d83.js\",\"4889\",\"static/chunks/4889-de8d1c4f2ff2f134.js\",\"8726\",\"static/chunks/8726-fd60949e252ac8d1.js\",\"7534\",\"static/chunks/7534-02c906a11e681445.js\",\"4220\",\"static/chunks/4220-e3c1264f6e3453a7.js\",\"7562\",\"static/chunks/7562-b71a43604fd32292.js\",\"4481\",\"static/chunks/4481-14671e1e3d1ffff7.js\",\"6857\",\"static/chunks/6857-f9121be732678b30.js\",\"2202\",\"static/chunks/2202-dad5d33fadc7ea73.js\",\"1786\",\"static/chunks/1786-7253d5c3df8362c5.js\",\"7029\",\"static/chunks/app/%5Blang%5D/codefly/learn/%5Bsubject%5D/%5Bpart%5D/%5Bpattern%5D/%5B%5B...mode%5D%5D/page-b11550cd55444a64.js\"],\"default\"]\n1b:T43d,{\"@context\":\"https://schema.org\",\"@type\":\"LearningResource\",\"name\":\"Common HTML mistakes - Mini Project: Build \u0026 Apply\",\"description\":\"Apply Common HTML mistakes in a hands-on mini project. Build something real with step-by-step guidance. Learn by doing, not just reading.\",\"url\":\"https://leyaa.ai/codefly/learn/html/part-1/html-common-html-mistakes/project\",\"learningResourceType\":\"Practice Exercise\",\"programmingLanguage\":\"HTML\",\"inLanguage\":\"en\",\"isAccessibleForFree\":true,\"teaches\":\"Common HTML mistakes - Mini Project: Build \u0026 Apply\",\"provider\":{\"@type\":\"Organization\",\"url\":\"https://leyaa.ai\"},\"educationalLevel\":\"Beginner to Advanced\",\"breadcrumb\":{\"@type\":\"BreadcrumbList\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https://leyaa.ai\"},{\"@type\":\"L"])</script><script>self.__next_f.push([1,"istItem\",\"position\":2,\"name\":\"Common HTML mistakes - Mini Project: Build \u0026 Apply\",\"item\":\"https://leyaa.ai/codefly/learn/html/part-1/html-common-html-mistakes\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Project\",\"item\":\"https://leyaa.ai/codefly/learn/html/part-1/html-common-html-mistakes/project\"}]}}"])</script><script>self.__next_f.push([1,"b:[[[\"$\",\"script\",\"0\",{\"type\":\"application/ld+json\",\"dangerouslySetInnerHTML\":{\"__html\":\"$1b\"}}]],[\"$\",\"$L1c\",null,{\"subject\":\"html\",\"dbSubject\":\"html\",\"part\":\"part-1\",\"pattern\":\"html_common_html_mistakes\",\"modeSlug\":\"project\",\"lang\":\"en\",\"internalLinks\":[{\"code\":\"LMC\",\"slug\":\"\",\"label\":\"📖 Learn\",\"href\":\"/codefly/learn/html/part-1/html-common-html-mistakes\",\"active\":false},{\"code\":\"LMCWHY\",\"slug\":\"why\",\"label\":\"💡 Why Learn This\",\"href\":\"/codefly/learn/html/part-1/html-common-html-mistakes/why\",\"active\":false},{\"code\":\"DLM\",\"slug\":\"deep\",\"label\":\"💡 Deep Learn Mode\",\"href\":\"/codefly/learn/html/part-1/html-common-html-mistakes/deep\",\"active\":false},{\"code\":\"TMC\",\"slug\":\"try\",\"label\":\"✏️ Try It\",\"href\":\"/codefly/learn/html/part-1/html-common-html-mistakes/try\",\"active\":false},{\"code\":\"VMC\",\"slug\":\"visualize\",\"label\":\"👁 Visualize\",\"href\":\"/codefly/learn/html/part-1/html-common-html-mistakes/visualize\",\"active\":false},{\"code\":\"TCM\",\"slug\":\"complexity\",\"label\":\"⏱ Complexity\",\"href\":\"/codefly/learn/html/part-1/html-common-html-mistakes/complexity\",\"active\":false},{\"code\":\"CMC\",\"slug\":\"challenge\",\"label\":\"🏆 Challenge\",\"href\":\"/codefly/learn/html/part-1/html-common-html-mistakes/challenge\",\"active\":false},{\"code\":\"PMC\",\"slug\":\"project\",\"label\":\"📁 Project\",\"href\":\"/codefly/learn/html/part-1/html-common-html-mistakes/project\",\"active\":true},{\"code\":\"RMC\",\"slug\":\"review\",\"label\":\"🧠 Quick Review\",\"href\":\"/codefly/learn/html/part-1/html-common-html-mistakes/review\",\"active\":false}],\"isLoggedIn\":false,\"seoH1\":\"Common HTML mistakes - Mini Project: Build \u0026 Apply\",\"contentData\":{\"pattern_id\":\"html_common_html_mistakes\",\"metadata\":{\"slot_map\":{\"LMCWHY\":\"LMCWHY\",\"LMC\":\"LMC\",\"TMC\":\"TMC\",\"CMC\":\"CMC\",\"RMC\":\"RMC\",\"VMC\":\"BRM\",\"TCM\":\"WPM\",\"PMC\":\"PMC\",\"DLM\":\"DLM\"}},\"modes\":{\"PMC\":{\"project_title\":\"Fixing Common HTML Mistakes\",\"mode\":\"PMC_v4.2\",\"language\":\"html\",\"content_type\":\"Web Development\",\"difficulty\":\"beginner\",\"scenario\":\"\u003cp\u003eYou are creating a simple webpage for a local bakery. The page should have a header, a navigation menu, a main section with a welcome message, and a footer with contact info.\u003c/p\u003e\u003cp\u003eHowever, the initial HTML has some common mistakes that can cause problems in browsers or for people using assistive technology.\u003c/p\u003e\",\"goal\":\"\u003cp\u003eFix the common HTML mistakes in the bakery webpage so it uses correct tags, proper nesting, and semantic structure. The page should be accessible and display correctly in browsers.\u003c/p\u003e\",\"requirements\":[\"Use semantic HTML5 elements like \u003cheader\u003e, \u003cnav\u003e, \u003cmain\u003e, and \u003cfooter\u003e\",\"Include \u003chtml\u003e with \u003chead\u003e and \u003cbody\u003e sections\",\"Add \u003cmeta\u003e tags for charset and viewport inside \u003chead\u003e\",\"Use proper nesting of tags (no overlapping or missing closing tags)\",\"Add accessible attributes like \u003cnav\u003e with aria-label\",\"Use \u003cstrong\u003e or \u003cem\u003e for emphasis instead of deprecated tags\",\"Ensure the page title is inside \u003ctitle\u003e tag\"],\"steps\":[{\"step_number\":1,\"title\":\"Create the basic HTML structure\",\"instruction\":\"Write the basic HTML skeleton with \u003ccode\u003e\u0026lt;!DOCTYPE html\u0026gt;\u003c/code\u003e, \u003ccode\u003e\u0026lt;html lang=\\\"en\\\"\u0026gt;\u003c/code\u003e, \u003ccode\u003e\u0026lt;head\u0026gt;\u003c/code\u003e, and \u003ccode\u003e\u0026lt;body\u0026gt;\u003c/code\u003e tags. Inside \u003ccode\u003e\u0026lt;head\u0026gt;\u003c/code\u003e, add a \u003ccode\u003e\u0026lt;title\u0026gt;\u003c/code\u003e with the text \u003ccode\u003e\\\"Local Bakery\\\"\u003c/code\u003e. Also add \u003ccode\u003e\u0026lt;meta charset=\\\"UTF-8\\\"\u0026gt;\u003c/code\u003e and \u003ccode\u003e\u0026lt;meta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"\u0026gt;\u003c/code\u003e tags.\",\"starter_code\":\"\",\"placeholder_code\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml lang=\\\"en\\\"\u003e\\n\u003chead\u003e\\n \u003c!-- Your code here --\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"solution_code\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml lang=\\\"en\\\"\u003e\\n\u003chead\u003e\\n \u003cmeta charset=\\\"UTF-8\\\"\u003e\\n \u003cmeta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"\u003e\\n \u003ctitle\u003eLocal Bakery\u003c/title\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"validation_type\":\"code_contains\",\"validation_data\":[\"\u003c!DOCTYPE html\u003e\",\"\u003chtml lang=\\\"en\\\"\u003e\",\"\u003chead\u003e\",\"\u003cmeta charset=\\\"UTF-8\\\"\u003e\",\"\u003cmeta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"\u003e\",\"\u003ctitle\u003eLocal Bakery\u003c/title\u003e\",\"\u003c/head\u003e\",\"\u003cbody\u003e\",\"\u003c/body\u003e\",\"\u003c/html\u003e\"],\"hint\":\"\u003cp\u003eStart with the standard HTML5 document structure. The \u003ccode\u003elang\u003c/code\u003e attribute helps screen readers. The \u003ccode\u003emeta\u003c/code\u003e tags set character encoding and make the page responsive.\u003c/p\u003e\",\"timeout_seconds\":5},{\"step_number\":2,\"title\":\"Add semantic page sections\",\"instruction\":\"Inside the \u003ccode\u003e\u0026lt;body\u0026gt;\u003c/code\u003e, add a \u003ccode\u003e\u0026lt;header\u0026gt;\u003c/code\u003e with an \u003ccode\u003e\u0026lt;h1\u0026gt;\u003c/code\u003e that says \u003ccode\u003e\\\"Welcome to Our Bakery\\\"\u003c/code\u003e. Then add a \u003ccode\u003e\u0026lt;nav\u0026gt;\u003c/code\u003e with an \u003ccode\u003earia-label=\\\"Main navigation\\\"\u003c/code\u003e attribute. Inside \u003ccode\u003e\u0026lt;nav\u0026gt;\u003c/code\u003e, add an unordered list \u003ccode\u003e\u0026lt;ul\u0026gt;\u003c/code\u003e with three list items \u003ccode\u003e\u0026lt;li\u0026gt;\u003c/code\u003e containing links \u003ccode\u003e\u0026lt;a\u0026gt;\u003c/code\u003e to \u003ccode\u003e#home\u003c/code\u003e, \u003ccode\u003e#menu\u003c/code\u003e, and \u003ccode\u003e#contact\u003c/code\u003e with text \u003ccode\u003eHome\u003c/code\u003e, \u003ccode\u003eMenu\u003c/code\u003e, and \u003ccode\u003eContact\u003c/code\u003e respectively.\",\"starter_code\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml lang=\\\"en\\\"\u003e\\n\u003chead\u003e\\n \u003cmeta charset=\\\"UTF-8\\\"\u003e\\n \u003cmeta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"\u003e\\n \u003ctitle\u003eLocal Bakery\u003c/title\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"placeholder_code\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml lang=\\\"en\\\"\u003e\\n\u003chead\u003e\\n \u003cmeta charset=\\\"UTF-8\\\"\u003e\\n \u003cmeta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"\u003e\\n \u003ctitle\u003eLocal Bakery\u003c/title\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003c!-- Your code here --\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"solution_code\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml lang=\\\"en\\\"\u003e\\n\u003chead\u003e\\n \u003cmeta charset=\\\"UTF-8\\\"\u003e\\n \u003cmeta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"\u003e\\n \u003ctitle\u003eLocal Bakery\u003c/title\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003cheader\u003e\\n \u003ch1\u003eWelcome to Our Bakery\u003c/h1\u003e\\n \u003c/header\u003e\\n \u003cnav aria-label=\\\"Main navigation\\\"\u003e\\n \u003cul\u003e\\n \u003cli\u003e\u003ca href=\\\"#home\\\"\u003eHome\u003c/a\u003e\u003c/li\u003e\\n \u003cli\u003e\u003ca href=\\\"#menu\\\"\u003eMenu\u003c/a\u003e\u003c/li\u003e\\n \u003cli\u003e\u003ca href=\\\"#contact\\\"\u003eContact\u003c/a\u003e\u003c/li\u003e\\n \u003c/ul\u003e\\n \u003c/nav\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"validation_type\":\"code_contains\",\"validation_data\":[\"\u003cheader\u003e\",\"\u003ch1\u003eWelcome to Our Bakery\u003c/h1\u003e\",\"\u003cnav aria-label=\\\"Main navigation\\\"\u003e\",\"\u003cul\u003e\",\"\u003cli\u003e\u003ca href=\\\"#home\\\"\u003eHome\u003c/a\u003e\u003c/li\u003e\",\"\u003cli\u003e\u003ca href=\\\"#menu\\\"\u003eMenu\u003c/a\u003e\u003c/li\u003e\",\"\u003cli\u003e\u003ca href=\\\"#contact\\\"\u003eContact\u003c/a\u003e\u003c/li\u003e\",\"\u003c/ul\u003e\",\"\u003c/nav\u003e\"],\"hint\":\"\u003cp\u003eUse semantic tags for page sections. The \u003ccode\u003earia-label\u003c/code\u003e on \u003ccode\u003enav\u003c/code\u003e helps screen readers understand the menu purpose.\u003c/p\u003e\",\"timeout_seconds\":5},{\"step_number\":3,\"title\":\"Add main content with proper tags\",\"instruction\":\"Below the \u003ccode\u003e\u0026lt;nav\u0026gt;\u003c/code\u003e, add a \u003ccode\u003e\u0026lt;main\u0026gt;\u003c/code\u003e section. Inside \u003ccode\u003e\u0026lt;main\u0026gt;\u003c/code\u003e, add a paragraph \u003ccode\u003e\u0026lt;p\u0026gt;\u003c/code\u003e that says \u003ccode\u003e\\\"Freshly baked bread and pastries every day.\\\"\u003c/code\u003e Use \u003ccode\u003e\u0026lt;strong\u0026gt;\u003c/code\u003e tags to emphasize the word \u003ccode\u003e\\\"Freshly\\\"\u003c/code\u003e.\",\"starter_code\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml lang=\\\"en\\\"\u003e\\n\u003chead\u003e\\n \u003cmeta charset=\\\"UTF-8\\\"\u003e\\n \u003cmeta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"\u003e\\n \u003ctitle\u003eLocal Bakery\u003c/title\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003cheader\u003e\\n \u003ch1\u003eWelcome to Our Bakery\u003c/h1\u003e\\n \u003c/header\u003e\\n \u003cnav aria-label=\\\"Main navigation\\\"\u003e\\n \u003cul\u003e\\n \u003cli\u003e\u003ca href=\\\"#home\\\"\u003eHome\u003c/a\u003e\u003c/li\u003e\\n \u003cli\u003e\u003ca href=\\\"#menu\\\"\u003eMenu\u003c/a\u003e\u003c/li\u003e\\n \u003cli\u003e\u003ca href=\\\"#contact\\\"\u003eContact\u003c/a\u003e\u003c/li\u003e\\n \u003c/ul\u003e\\n \u003c/nav\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"placeholder_code\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml lang=\\\"en\\\"\u003e\\n\u003chead\u003e\\n \u003cmeta charset=\\\"UTF-8\\\"\u003e\\n \u003cmeta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"\u003e\\n \u003ctitle\u003eLocal Bakery\u003c/title\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003cheader\u003e\\n \u003ch1\u003eWelcome to Our Bakery\u003c/h1\u003e\\n \u003c/header\u003e\\n \u003cnav aria-label=\\\"Main navigation\\\"\u003e\\n \u003cul\u003e\\n \u003cli\u003e\u003ca href=\\\"#home\\\"\u003eHome\u003c/a\u003e\u003c/li\u003e\\n \u003cli\u003e\u003ca href=\\\"#menu\\\"\u003eMenu\u003c/a\u003e\u003c/li\u003e\\n \u003cli\u003e\u003ca href=\\\"#contact\\\"\u003eContact\u003c/a\u003e\u003c/li\u003e\\n \u003c/ul\u003e\\n \u003c/nav\u003e\\n \u003c!-- Your code here --\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"solution_code\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml lang=\\\"en\\\"\u003e\\n\u003chead\u003e\\n \u003cmeta charset=\\\"UTF-8\\\"\u003e\\n \u003cmeta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"\u003e\\n \u003ctitle\u003eLocal Bakery\u003c/title\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003cheader\u003e\\n \u003ch1\u003eWelcome to Our Bakery\u003c/h1\u003e\\n \u003c/header\u003e\\n \u003cnav aria-label=\\\"Main navigation\\\"\u003e\\n \u003cul\u003e\\n \u003cli\u003e\u003ca href=\\\"#home\\\"\u003eHome\u003c/a\u003e\u003c/li\u003e\\n \u003cli\u003e\u003ca href=\\\"#menu\\\"\u003eMenu\u003c/a\u003e\u003c/li\u003e\\n \u003cli\u003e\u003ca href=\\\"#contact\\\"\u003eContact\u003c/a\u003e\u003c/li\u003e\\n \u003c/ul\u003e\\n \u003c/nav\u003e\\n \u003cmain\u003e\\n \u003cp\u003e\u003cstrong\u003eFreshly\u003c/strong\u003e baked bread and pastries every day.\u003c/p\u003e\\n \u003c/main\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"validation_type\":\"code_contains\",\"validation_data\":[\"\u003cmain\u003e\",\"\u003cp\u003e\u003cstrong\u003eFreshly\u003c/strong\u003e baked bread and pastries every day.\u003c/p\u003e\",\"\u003c/main\u003e\"],\"hint\":\"\u003cp\u003eThe \u003ccode\u003emain\u003c/code\u003e tag holds the main content. Use \u003ccode\u003estrong\u003c/code\u003e to highlight important words instead of deprecated tags like \u003ccode\u003eb\u003c/code\u003e.\u003c/p\u003e\",\"timeout_seconds\":5},{\"step_number\":4,\"title\":\"Add footer with contact information\",\"instruction\":\"At the bottom of the \u003ccode\u003e\u0026lt;body\u0026gt;\u003c/code\u003e, add a \u003ccode\u003e\u0026lt;footer\u0026gt;\u003c/code\u003e section. Inside it, add a paragraph \u003ccode\u003e\u0026lt;p\u0026gt;\u003c/code\u003e with the text \u003ccode\u003e\\\"Contact us at \\\"\u003c/code\u003e followed by an email link \u003ccode\u003e\u0026lt;a href=\\\"mailto:info@localbakery.com\\\"\u0026gt;info@localbakery.com\u0026lt;/a\u0026gt;\u003c/code\u003e. Make sure all tags are properly closed and nested.\",\"starter_code\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml lang=\\\"en\\\"\u003e\\n\u003chead\u003e\\n \u003cmeta charset=\\\"UTF-8\\\"\u003e\\n \u003cmeta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"\u003e\\n \u003ctitle\u003eLocal Bakery\u003c/title\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003cheader\u003e\\n \u003ch1\u003eWelcome to Our Bakery\u003c/h1\u003e\\n \u003c/header\u003e\\n \u003cnav aria-label=\\\"Main navigation\\\"\u003e\\n \u003cul\u003e\\n \u003cli\u003e\u003ca href=\\\"#home\\\"\u003eHome\u003c/a\u003e\u003c/li\u003e\\n \u003cli\u003e\u003ca href=\\\"#menu\\\"\u003eMenu\u003c/a\u003e\u003c/li\u003e\\n \u003cli\u003e\u003ca href=\\\"#contact\\\"\u003eContact\u003c/a\u003e\u003c/li\u003e\\n \u003c/ul\u003e\\n \u003c/nav\u003e\\n \u003cmain\u003e\\n \u003cp\u003e\u003cstrong\u003eFreshly\u003c/strong\u003e baked bread and pastries every day.\u003c/p\u003e\\n \u003c/main\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"placeholder_code\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml lang=\\\"en\\\"\u003e\\n\u003chead\u003e\\n \u003cmeta charset=\\\"UTF-8\\\"\u003e\\n \u003cmeta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"\u003e\\n \u003ctitle\u003eLocal Bakery\u003c/title\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003cheader\u003e\\n \u003ch1\u003eWelcome to Our Bakery\u003c/h1\u003e\\n \u003c/header\u003e\\n \u003cnav aria-label=\\\"Main navigation\\\"\u003e\\n \u003cul\u003e\\n \u003cli\u003e\u003ca href=\\\"#home\\\"\u003eHome\u003c/a\u003e\u003c/li\u003e\\n \u003cli\u003e\u003ca href=\\\"#menu\\\"\u003eMenu\u003c/a\u003e\u003c/li\u003e\\n \u003cli\u003e\u003ca href=\\\"#contact\\\"\u003eContact\u003c/a\u003e\u003c/li\u003e\\n \u003c/ul\u003e\\n \u003c/nav\u003e\\n \u003cmain\u003e\\n \u003cp\u003e\u003cstrong\u003eFreshly\u003c/strong\u003e baked bread and pastries every day.\u003c/p\u003e\\n \u003c/main\u003e\\n \u003c!-- Your code here --\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"solution_code\":\"\u003c!DOCTYPE html\u003e\\n\u003chtml lang=\\\"en\\\"\u003e\\n\u003chead\u003e\\n \u003cmeta charset=\\\"UTF-8\\\"\u003e\\n \u003cmeta name=\\\"viewport\\\" content=\\\"width=device-width, initial-scale=1.0\\\"\u003e\\n \u003ctitle\u003eLocal Bakery\u003c/title\u003e\\n\u003c/head\u003e\\n\u003cbody\u003e\\n \u003cheader\u003e\\n \u003ch1\u003eWelcome to Our Bakery\u003c/h1\u003e\\n \u003c/header\u003e\\n \u003cnav aria-label=\\\"Main navigation\\\"\u003e\\n \u003cul\u003e\\n \u003cli\u003e\u003ca href=\\\"#home\\\"\u003eHome\u003c/a\u003e\u003c/li\u003e\\n \u003cli\u003e\u003ca href=\\\"#menu\\\"\u003eMenu\u003c/a\u003e\u003c/li\u003e\\n \u003cli\u003e\u003ca href=\\\"#contact\\\"\u003eContact\u003c/a\u003e\u003c/li\u003e\\n \u003c/ul\u003e\\n \u003c/nav\u003e\\n \u003cmain\u003e\\n \u003cp\u003e\u003cstrong\u003eFreshly\u003c/strong\u003e baked bread and pastries every day.\u003c/p\u003e\\n \u003c/main\u003e\\n \u003cfooter\u003e\\n \u003cp\u003eContact us at \u003ca href=\\\"mailto:info@localbakery.com\\\"\u003einfo@localbakery.com\u003c/a\u003e\u003c/p\u003e\\n \u003c/footer\u003e\\n\u003c/body\u003e\\n\u003c/html\u003e\",\"validation_type\":\"code_contains\",\"validation_data\":[\"\u003cfooter\u003e\",\"\u003cp\u003eContact us at \u003ca href=\\\"mailto:info@localbakery.com\\\"\u003einfo@localbakery.com\u003c/a\u003e\u003c/p\u003e\",\"\u003c/footer\u003e\"],\"hint\":\"\u003cp\u003eThe footer usually contains contact info or copyright. Use \u003ccode\u003emailto:\u003c/code\u003e links for email addresses.\u003c/p\u003e\",\"timeout_seconds\":5}],\"final_expected_output\":\"A complete, valid HTML5 webpage with semantic sections: header with a main heading, a navigation menu with accessible aria-label, a main content area with emphasized text, and a footer with a clickable email contact link. The page includes proper meta tags and uses correct nesting and closing of tags.\",\"summary\":[\"You learned how to create a valid HTML5 document structure.\",\"You used semantic tags like header, nav, main, and footer for better meaning.\",\"You added accessibility features like aria-label on navigation.\",\"You used proper nesting and closing of tags to avoid common HTML mistakes.\",\"You replaced deprecated tags with semantic alternatives like strong.\"],\"extensions\":[\"Add CSS styles to make the navigation horizontal and the footer background color different.\",\"Add keyboard navigation support by ensuring links are focusable and visible on focus.\",\"Include an image with alt text inside the main section to improve accessibility.\"],\"project_context\":{\"real_world_use\":\"Webpages must be correctly structured and accessible to work well on all devices and for all users, including those using screen readers.\",\"job_relevance\":\"Understanding and fixing common HTML mistakes is essential for front-end developers and web designers to create professional, accessible websites.\"},\"metadata\":{\"version\":\"4.2\",\"content_type\":\"markup\",\"total_steps\":4,\"estimated_time_minutes\":30}}},\"subject\":\"html\",\"title\":\"Common HTML mistakes\",\"puzzleDetails\":[{\"_id\":\"69b1785045baa2b58545fcfa\",\"question_number\":1,\"question\":\"Which of the following is a common mistake when writing HTML tags?\",\"options\":{\"A\":\"Writing comments with \u003ccode\u003e\u0026lt;!-- comment --\u0026gt;\u003c/code\u003e\",\"B\":\"Using lowercase letters for tags\",\"C\":\"Adding spaces between attributes\",\"D\":\"Not closing tags properly, like forgetting \u003ccode\u003e\u0026lt;/p\u0026gt;\u003c/code\u003e\"},\"correct_answer\":[\"D\"],\"solution_explanation\":\"\u003cdiv class='solution-box'\u003e\u003cspan class='solution-label'\u003e\u003cstrong\u003eSolution:\u003c/strong\u003e\u003c/span\u003e\u003col\u003e\u003cli\u003e\u003ch4\u003eStep 1: Understand proper tag closure\u003c/h4\u003eHTML tags like \u003ccode\u003e\u0026lt;p\u0026gt;\u003c/code\u003e must be closed with \u003ccode\u003e\u0026lt;/p\u0026gt;\u003c/code\u003e to define content boundaries.\u003c/li\u003e\u003cli\u003e\u003ch4\u003eStep 2: Identify the mistake\u003c/h4\u003eNot closing tags properly breaks the page structure and can cause rendering issues.\u003c/li\u003e\u003cli\u003e\u003ch4\u003eFinal Answer:\u003c/h4\u003e\u003cstrong\u003eNot closing tags properly, like forgetting \u0026lt;/p\u0026gt;\u003c/strong\u003e -\u003e Option D\u003c/li\u003e\u003cli\u003e\u003ch4\u003eQuick Check:\u003c/h4\u003eClose tags properly = A [OK]\u003c/li\u003e\u003c/ol\u003e\u003c/div\u003e\",\"quick_trick\":\"Always match opening and closing tags exactly [OK]\",\"common_mistakes\":[\"Forgetting to close tags\",\"Self-closing tags without slash\",\"Mismatched tag names\"],\"subject\":\"html\",\"pattern\":\"Common HTML mistakes\",\"category\":\"Web Development\",\"question_format\":\"MCQ\",\"question_mode\":\"conceptual\",\"difficulty\":\"easy\",\"topic\":\"HTML Elements \u0026 Tags\",\"type\":\"Web Development\",\"question_type\":\"conceptual\",\"level\":\"easy\",\"test_type\":\"puzzle\",\"pattern_id\":\"html_common_html_mistakes\",\"subjectTitle\":\"HTML\",\"part\":\"part-1\",\"set_no\":1,\"usage_count\":2,\"last_used_at\":\"2026-08-09T08:36:44.093Z\",\"topic_id\":\"html_p1_t2\"},{\"_id\":\"69b1785045baa2b58545fcfb\",\"question_number\":2,\"question\":\"Which of these is the correct way to write an image tag with an alt attribute?\",\"options\":{\"A\":\"\u003ccode\u003e\u0026lt;img src='cat.jpg' alt='cat'\u0026gt;\u003c/code\u003e\",\"B\":\"\u003ccode\u003e\u0026lt;img src=\\\"cat.jpg\\\" alt=cat\u0026gt;\u003c/code\u003e\",\"C\":\"\u003ccode\u003e\u0026lt;img src=cat.jpg alt=cat\u0026gt;\u003c/code\u003e\",\"D\":\"\u003ccode\u003e\u0026lt;img src=cat.jpg alt='cat'\u0026gt;\u003c/code\u003e\"},\"correct_answer\":[\"A\"],\"solution_explanation\":\"\u003cdiv class='solution-box'\u003e\u003cspan class='solution-label'\u003e\u003cstrong\u003eSolution:\u003c/strong\u003e\u003c/span\u003e\u003col\u003e\u003cli\u003e\u003ch4\u003eStep 1: Check attribute quoting rules\u003c/h4\u003eHTML requires attribute values to be in quotes, either single or double quotes.\u003c/li\u003e\u003cli\u003e\u003ch4\u003eStep 2: Find the option with all attributes quoted\u003c/h4\u003e\u003ccode\u003e\u0026lt;img src='cat.jpg' alt='cat'\u0026gt;\u003c/code\u003e uses single quotes around both \u003ccode\u003esrc\u003c/code\u003e and \u003ccode\u003ealt\u003c/code\u003e values correctly.\u003c/li\u003e\u003cli\u003e\u003ch4\u003eFinal Answer:\u003c/h4\u003e\u003cstrong\u003e\u0026lt;img src='cat.jpg' alt='cat'\u0026gt;\u003c/strong\u003e -\u003e Option A\u003c/li\u003e\u003cli\u003e\u003ch4\u003eQuick Check:\u003c/h4\u003eAttributes need quotes = C [OK]\u003c/li\u003e\u003c/ol\u003e\u003c/div\u003e\",\"quick_trick\":\"Always put quotes around attribute values [OK]\",\"common_mistakes\":[\"Missing quotes around attribute values\",\"Mixing quote types incorrectly\",\"Using invalid characters in attributes\"],\"subject\":\"html\",\"pattern\":\"Common HTML mistakes\",\"category\":\"Web Development\",\"question_format\":\"MCQ\",\"question_mode\":\"syntax\",\"difficulty\":\"easy\",\"topic\":\"HTML Elements \u0026 Tags\",\"type\":\"Web Development\",\"question_type\":\"syntax\",\"level\":\"easy\",\"test_type\":\"puzzle\",\"pattern_id\":\"html_common_html_mistakes\",\"subjectTitle\":\"HTML\",\"part\":\"part-1\",\"set_no\":1,\"usage_count\":2,\"last_used_at\":\"2026-08-14T08:33:04.242Z\",\"topic_id\":\"html_p1_t2\"},{\"_id\":\"69b1785045baa2b58545fcfc\",\"question_number\":3,\"question\":\"What will the browser display when rendering this HTML snippet?\\n\u003cpre\u003e\u0026lt;div\u0026gt;\u0026lt;p\u0026gt;Hello\u0026lt;div\u0026gt;World\u0026lt;/p\u0026gt;\u0026lt;/div\u0026gt;\u003c/pre\u003e\",\"options\":{\"A\":\"Hello followed by World outside the paragraph\",\"B\":\"HelloWorld inside nested div and p tags correctly\",\"C\":\"Only Hello displayed, World ignored\",\"D\":\"A rendering error or broken layout\"},\"correct_answer\":[\"A\"],\"solution_explanation\":\"\u003cdiv class='solution-box'\u003e\u003cspan class='solution-label'\u003e\u003cstrong\u003eSolution:\u003c/strong\u003e\u003c/span\u003e\u003col\u003e\u003cli\u003e\u003ch4\u003eStep 1: Analyze tag nesting rules\u003c/h4\u003eA \u003ccode\u003e\u0026lt;div\u0026gt;\u003c/code\u003e cannot be inside a \u003ccode\u003e\u0026lt;p\u0026gt;\u003c/code\u003e tag because \u003ccode\u003e\u0026lt;p\u0026gt;\u003c/code\u003e cannot contain block elements like \u003ccode\u003e\u0026lt;div\u0026gt;\u003c/code\u003e.\u003c/li\u003e\u003cli\u003e\u003ch4\u003eStep 2: Understand browser correction behavior\u003c/h4\u003eThe browser closes the \u003ccode\u003e\u0026lt;p\u0026gt;\u003c/code\u003e before the inner \u003ccode\u003e\u0026lt;div\u0026gt;\u003c/code\u003e, so \\\"World\\\" is outside the paragraph.\u003c/li\u003e\u003cli\u003e\u003ch4\u003eFinal Answer:\u003c/h4\u003e\u003cstrong\u003eHello followed by World outside the paragraph\u003c/strong\u003e -\u003e Option A\u003c/li\u003e\u003cli\u003e\u003ch4\u003eQuick Check:\u003c/h4\u003eInvalid nesting moves content outside = A [OK]\u003c/li\u003e\u003c/ol\u003e\u003c/div\u003e\",\"quick_trick\":\"Block tags can't go inside \u003cp\u003e tags [OK]\",\"common_mistakes\":[\"Placing block elements inside \u003cp\u003e\",\"Assuming browser ignores invalid nesting\",\"Not closing tags properly\"],\"subject\":\"html\",\"pattern\":\"Common HTML mistakes\",\"category\":\"Web Development\",\"question_format\":\"MCQ\",\"question_mode\":\"rendering\",\"difficulty\":\"medium\",\"topic\":\"HTML Elements \u0026 Tags\",\"type\":\"Web Development\",\"question_type\":\"rendering\",\"level\":\"medium\",\"test_type\":\"puzzle\",\"pattern_id\":\"html_common_html_mistakes\",\"subjectTitle\":\"HTML\",\"part\":\"part-1\",\"set_no\":1,\"usage_count\":1,\"last_used_at\":\"2026-07-22T11:59:29.185Z\",\"topic_id\":\"html_p1_t2\"},{\"_id\":\"69b1785045baa2b58545fcfd\",\"question_number\":4,\"question\":\"Identify the error in this HTML snippet:\\n\u003cpre\u003e\u0026lt;ul\u0026gt;\\n \u0026lt;li\u0026gt;Item 1\\n \u0026lt;li\u0026gt;Item 2\u0026lt;/li\u0026gt;\\n\u0026lt;/ul\u0026gt;\u003c/pre\u003e\",\"options\":{\"A\":\"Using \u003ccode\u003e\u0026lt;li\u0026gt;\u003c/code\u003e inside \u003ccode\u003e\u0026lt;ul\u0026gt;\u003c/code\u003e is invalid\",\"B\":\"Missing closing tag for first \u003ccode\u003e\u0026lt;li\u0026gt;\u003c/code\u003e element\",\"C\":\"The \u003ccode\u003e\u0026lt;ul\u0026gt;\u003c/code\u003e tag should be \u003ccode\u003e\u0026lt;ol\u0026gt;\u003c/code\u003e\",\"D\":\"The second \u003ccode\u003e\u0026lt;li\u0026gt;\u003c/code\u003e tag is self-closing incorrectly\"},\"correct_answer\":[\"B\"],\"solution_explanation\":\"\u003cdiv class='solution-box'\u003e\u003cspan class='solution-label'\u003e\u003cstrong\u003eSolution:\u003c/strong\u003e\u003c/span\u003e\u003col\u003e\u003cli\u003e\u003ch4\u003eStep 1: Check list item tags\u003c/h4\u003eEach \u003ccode\u003e\u0026lt;li\u0026gt;\u003c/code\u003e must be properly closed to separate list items.\u003c/li\u003e\u003cli\u003e\u003ch4\u003eStep 2: Identify missing closing tag\u003c/h4\u003eThe first \u003ccode\u003e\u0026lt;li\u0026gt;\u003c/code\u003e is not closed, so the browser may merge both items incorrectly.\u003c/li\u003e\u003cli\u003e\u003ch4\u003eFinal Answer:\u003c/h4\u003e\u003cstrong\u003eMissing closing tag for first \u0026lt;li\u0026gt; element\u003c/strong\u003e -\u003e Option B\u003c/li\u003e\u003cli\u003e\u003ch4\u003eQuick Check:\u003c/h4\u003eClose all \u003cli\u003e tags properly = B [OK]\u003c/li\u003e\u003c/ol\u003e\u003c/div\u003e\",\"quick_trick\":\"Close every \u003cli\u003e tag to separate list items [OK]\",\"common_mistakes\":[\"Omitting closing \u003c/li\u003e\",\"Confusing \u003cul\u003e and \u003col\u003e\",\"Incorrect nesting of list tags\"],\"subject\":\"html\",\"pattern\":\"Common HTML mistakes\",\"category\":\"Web Development\",\"question_format\":\"MCQ\",\"question_mode\":\"debug\",\"difficulty\":\"medium\",\"topic\":\"HTML Elements \u0026 Tags\",\"type\":\"Web Development\",\"question_type\":\"debug\",\"level\":\"medium\",\"test_type\":\"puzzle\",\"pattern_id\":\"html_common_html_mistakes\",\"subjectTitle\":\"HTML\",\"part\":\"part-1\",\"set_no\":1,\"usage_count\":1,\"last_used_at\":\"2026-08-05T12:15:36.228Z\",\"topic_id\":\"html_p1_t2\"},{\"_id\":\"69b1785045baa2b58545fcfe\",\"question_number\":5,\"question\":\"You want to create a form with a label and input that is accessible and correct. Which snippet fixes the common mistake below?\\n\u003cpre\u003e\u0026lt;label\u0026gt;Name\u0026lt;/label\u0026gt;\\n\u0026lt;input type=\\\"text\\\" id=\\\"name\\\"\u0026gt;\u003c/pre\u003e\",\"options\":{\"A\":\"\u003ccode\u003e\u0026lt;label id=\\\"name\\\"\u0026gt;Name\u0026lt;/label\u0026gt;\\\\n\u0026lt;input type=\\\"text\\\"\u0026gt;\u003c/code\u003e\",\"B\":\"\u003ccode\u003e\u0026lt;label\u0026gt;Name\u0026lt;input type=\\\"text\\\" id=\\\"name\\\"\u0026gt;\u0026lt;/label\u0026gt;\u003c/code\u003e\",\"C\":\"\u003ccode\u003e\u0026lt;label for=\\\"name\\\"\u0026gt;Name\u0026lt;/label\u0026gt;\\\\n\u0026lt;input type=\\\"text\\\" id=\\\"name\\\"\u0026gt;\u003c/code\u003e\",\"D\":\"\u003ccode\u003e\u0026lt;input type=\\\"text\\\" id=\\\"name\\\"\u0026gt;\\\\n\u0026lt;label\u0026gt;Name\u0026lt;/label\u0026gt;\u003c/code\u003e\"},\"correct_answer\":[\"C\"],\"solution_explanation\":\"\u003cdiv class='solution-box'\u003e\u003cspan class='solution-label'\u003e\u003cstrong\u003eSolution:\u003c/strong\u003e\u003c/span\u003e\u003col\u003e\u003cli\u003e\u003ch4\u003eStep 1: Understand label-input association\u003c/h4\u003eLabels should be linked to inputs using the \u003ccode\u003efor\u003c/code\u003e attribute matching the input's \u003ccode\u003eid\u003c/code\u003e.\u003c/li\u003e\u003cli\u003e\u003ch4\u003eStep 2: Check options for correct association\u003c/h4\u003e\u003ccode\u003e\u0026lt;label for=\\\"name\\\"\u0026gt;Name\u0026lt;/label\u0026gt;\\\\n\u0026lt;input type=\\\"text\\\" id=\\\"name\\\"\u0026gt;\u003c/code\u003e uses \u003ccode\u003efor=\\\"name\\\"\u003c/code\u003e on label and \u003ccode\u003eid=\\\"name\\\"\u003c/code\u003e on input, making it accessible and correct.\u003c/li\u003e\u003cli\u003e\u003ch4\u003eFinal Answer:\u003c/h4\u003e\u003cstrong\u003e\u0026lt;label for=\\\"name\\\"\u0026gt;Name\u0026lt;/label\u0026gt;\\\\n\u0026lt;input type=\\\"text\\\" id=\\\"name\\\"\u0026gt;\u003c/strong\u003e -\u003e Option C\u003c/li\u003e\u003cli\u003e\u003ch4\u003eQuick Check:\u003c/h4\u003eUse for and id to link label and input = D [OK]\u003c/li\u003e\u003c/ol\u003e\u003c/div\u003e\",\"quick_trick\":\"Use label's for attribute matching input's id [OK]\",\"common_mistakes\":[\"Not linking label and input\",\"Wrapping input inside label incorrectly\",\"Using id on label instead of for\"],\"subject\":\"html\",\"pattern\":\"Common HTML mistakes\",\"category\":\"Web Development\",\"question_format\":\"MCQ\",\"question_mode\":\"application\",\"difficulty\":\"hard\",\"topic\":\"HTML Elements \u0026 Tags\",\"type\":\"Web Development\",\"question_type\":\"application\",\"level\":\"hard\",\"test_type\":\"puzzle\",\"pattern_id\":\"html_common_html_mistakes\",\"subjectTitle\":\"HTML\",\"part\":\"part-1\",\"set_no\":1,\"usage_count\":1,\"last_used_at\":\"2026-07-26T14:26:11.773Z\",\"topic_id\":\"html_p1_t2\"}]},\"syllabusData\":{\"subject\":\"html\",\"part\":\"part-1\",\"difficulty\":\"beginner\",\"metadata\":{\"total_topics\":7,\"total_patterns\":43,\"patterns_with_content\":43,\"created_at\":\"2026-02-28T20:17:17.741100Z\",\"version\":\"4.2\",\"upload_tool\":\"upload_to_mongo.py v2.0\"},\"part_title\":\"Core Structure \u0026 Content\",\"subjectTitle\":\"HTML\",\"topics\":[{\"topic_id\":\"html_p1_t1\",\"title\":\"HTML Basics \u0026 Web Fundamentals\",\"order\":1,\"pattern_count\":7,\"patterns\":[{\"pattern_id\":\"html_what_is_html\",\"title\":\"What is HTML\",\"order\":1,\"has_content\":true},{\"pattern_id\":\"html_role_of_html_in_web_development\",\"title\":\"Role of HTML in web development\",\"order\":2,\"has_content\":true},{\"pattern_id\":\"html_how_browsers_read_html\",\"title\":\"How browsers read HTML\",\"order\":3,\"has_content\":true},{\"pattern_id\":\"html_html_document_structure\",\"title\":\"HTML document structure\",\"order\":4,\"has_content\":true},{\"pattern_id\":\"html_doctype_declaration\",\"title\":\"DOCTYPE declaration\",\"order\":5,\"has_content\":true},{\"pattern_id\":\"html_head_and_body_sections\",\"title\":\"Head and body sections\",\"order\":6,\"has_content\":true},{\"pattern_id\":\"html_first_html_page\",\"title\":\"First HTML page\",\"order\":7,\"has_content\":true}]},{\"topic_id\":\"html_p1_t2\",\"title\":\"HTML Elements \u0026 Tags\",\"order\":2,\"pattern_count\":7,\"patterns\":[{\"pattern_id\":\"html_what_is_an_html_element\",\"title\":\"What is an HTML element\",\"order\":1,\"has_content\":true},{\"pattern_id\":\"html_opening_and_closing_tags\",\"title\":\"Opening and closing tags\",\"order\":2,\"has_content\":true},{\"pattern_id\":\"html_selfclosing_tags\",\"title\":\"Self-closing tags\",\"order\":3,\"has_content\":true},{\"pattern_id\":\"html_nested_elements\",\"title\":\"Nested elements\",\"order\":4,\"has_content\":true},{\"pattern_id\":\"html_blocklevel_elements\",\"title\":\"Block-level elements\",\"order\":5,\"has_content\":true},{\"pattern_id\":\"html_inline_elements\",\"title\":\"Inline elements\",\"order\":6,\"has_content\":true},{\"pattern_id\":\"html_common_html_mistakes\",\"title\":\"Common HTML mistakes\",\"order\":7,\"has_content\":true}]},{\"topic_id\":\"html_p1_t3\",\"title\":\"Text Content \u0026 Formatting\",\"order\":3,\"pattern_count\":7,\"patterns\":[{\"pattern_id\":\"html_headings_h1h6\",\"title\":\"Headings (h1–h6)\",\"order\":1,\"has_content\":true},{\"pattern_id\":\"html_paragraphs\",\"title\":\"Paragraphs\",\"order\":2,\"has_content\":true},{\"pattern_id\":\"html_line_breaks_and_horizontal_rules\",\"title\":\"Line breaks and horizontal rules\",\"order\":3,\"has_content\":true},{\"pattern_id\":\"html_bold_and_italic_text\",\"title\":\"Bold and italic text\",\"order\":4,\"has_content\":true},{\"pattern_id\":\"html_strong_vs_b_tag\",\"title\":\"Strong vs b tag\",\"order\":5,\"has_content\":true},{\"pattern_id\":\"html_em_vs_i_tag\",\"title\":\"Em vs i tag\",\"order\":6,\"has_content\":true},{\"pattern_id\":\"html_preformatted_text\",\"title\":\"Preformatted text\",\"order\":7,\"has_content\":true}]},{\"topic_id\":\"html_p1_t4\",\"title\":\"Links \u0026 Navigation\",\"order\":4,\"pattern_count\":6,\"patterns\":[{\"pattern_id\":\"html_anchor_tag_basics\",\"title\":\"Anchor tag basics\",\"order\":1,\"has_content\":true},{\"pattern_id\":\"html_absolute_vs_relative_urls\",\"title\":\"Absolute vs relative URLs\",\"order\":2,\"has_content\":true},{\"pattern_id\":\"html_opening_links_in_new_tab\",\"title\":\"Opening links in new tab\",\"order\":3,\"has_content\":true},{\"pattern_id\":\"html_linking_to_sections_using_ids\",\"title\":\"Linking to sections using IDs\",\"order\":4,\"has_content\":true},{\"pattern_id\":\"html_email_and_phone_links\",\"title\":\"Email and phone links\",\"order\":5,\"has_content\":true},{\"pattern_id\":\"html_navigation_structure_basics\",\"title\":\"Navigation structure basics\",\"order\":6,\"has_content\":true}]},{\"topic_id\":\"html_p1_t5\",\"title\":\"Images \u0026 Media\",\"order\":5,\"pattern_count\":6,\"patterns\":[{\"pattern_id\":\"html_image_tag_usage\",\"title\":\"Image tag usage\",\"order\":1,\"has_content\":true},{\"pattern_id\":\"html_image_source_and_alt_attribute\",\"title\":\"Image source and alt attribute\",\"order\":2,\"has_content\":true},{\"pattern_id\":\"html_image_sizing_basics\",\"title\":\"Image sizing basics\",\"order\":3,\"has_content\":true},{\"pattern_id\":\"html_audio_tag_basics\",\"title\":\"Audio tag basics\",\"order\":4,\"has_content\":true},{\"pattern_id\":\"html_video_tag_basics\",\"title\":\"Video tag basics\",\"order\":5,\"has_content\":true},{\"pattern_id\":\"html_media_formats_overview\",\"title\":\"Media formats overview\",\"order\":6,\"has_content\":true}]},{\"topic_id\":\"html_p1_t6\",\"title\":\"Lists\",\"order\":6,\"pattern_count\":5,\"patterns\":[{\"pattern_id\":\"html_ordered_lists\",\"title\":\"Ordered lists\",\"order\":1,\"has_content\":true},{\"pattern_id\":\"html_unordered_lists\",\"title\":\"Unordered lists\",\"order\":2,\"has_content\":true},{\"pattern_id\":\"html_nested_lists\",\"title\":\"Nested lists\",\"order\":3,\"has_content\":true},{\"pattern_id\":\"html_description_lists\",\"title\":\"Description lists\",\"order\":4,\"has_content\":true},{\"pattern_id\":\"html_list_use_cases_in_layout\",\"title\":\"List use cases in layout\",\"order\":5,\"has_content\":true}]},{\"topic_id\":\"html_p1_t7\",\"title\":\"Tables\",\"order\":7,\"pattern_count\":5,\"patterns\":[{\"pattern_id\":\"html_table_structure\",\"title\":\"Table structure\",\"order\":1,\"has_content\":true},{\"pattern_id\":\"html_table_rows_and_columns\",\"title\":\"Table rows and columns\",\"order\":2,\"has_content\":true},{\"pattern_id\":\"html_table_headers\",\"title\":\"Table headers\",\"order\":3,\"has_content\":true},{\"pattern_id\":\"html_cell_merging\",\"title\":\"Cell merging\",\"order\":4,\"has_content\":true},{\"pattern_id\":\"html_table_accessibility_basics\",\"title\":\"Table accessibility basics\",\"order\":5,\"has_content\":true}]}]},\"modeCode\":\"PMC\",\"productId\":\"codefly\"}]]\n"])</script></body></html>