Code Challenges
Code challenges for HTML. Each challenge links to its lesson page where you can solve it with live code execution.
35 challenges · 4 lessons01introduction
9 challengesएक HTML <p> element लिखिए जो "Welcome to HTML" text दिखाए।easy<!DOCTYPE html>, <html>, <head> और <body> elements का उपयोग करके एक basic HTML5 document लिखिए। <title> element से page का title "My Website" रखें।easyएक HTML <a> element लिखिए जो "https://example.com" से लिंक हो और "Visit Website" text दिखाए।easyएक HTML <h1> element लिखिए जो "About HTML" दिखाए और एक <p> element लिखिए जो "HTML structures web pages." दिखाए।easyएक HTML <img> element लिखिए जिसमें src की value "photo.jpg" और alt की value "A beautiful landscape" हो।easy<ul> और <li> elements का उपयोग करके दो items "HTML" और "CSS" वाली HTML unordered list लिखिए।easyएक HTML <a> element लिखिए जो "https://www.example.com" से लिंक हो और "Open Example" text दिखाए।easyएक HTML <h1> element लिखिए जो "My First Page" text दिखाए।easyएक complete HTML page लिखिए जिसमें <h1> heading "Welcome" और <p> paragraph "Hello World" हो।medium
02HTML Editors
6 challengesनिम्न HTML structure को सही indentation के साथ लिखिए: एक body के अंदर div और उस div के अंदर "About Us" text वाला h2 element।easy<!DOCTYPE html>, <html>, <head> और <body> tags का उपयोग करके Basic HTML Document Structure लिखिए।easyAnchor element को पूरा कीजिए ताकि वह https://example.com से link करे और "Visit Website" text दिखाए।easy<body> element के अंदर एक <h1> element लिखिए जो "Welcome to HTML" दिखाए और एक <p> element लिखिए जो "I am learning HTML." दिखाए।easy<!DOCTYPE html>, <html>, <head> और <body> elements का उपयोग करके एक Complete HTML Document बनाइए। <title> element का उपयोग करके Page Title "My First Website" रखें। <body> के अंदर "Hello World" दिखाने वाली <h1> Heading और "This is my first web page." दिखाने वाला <p> Paragraph जोड़ें।easyनिम्न HTML code में गलत closing tag है। इसे सही closing tag के साथ दोबारा लिखिए: <strong>Important Notice</p>easy
03HTML Basic
10 challengesएक HTML <p> element लिखिए जिसमें "Learning HTML" text हो।easy<h1> का उपयोग करके एक Heading बनाएँ।easyदो अलग-अलग Paragraphs बनाएँ।easyhttps://www.example.com पर जाने वाला और "Example Website" text दिखाने वाला <a> element बनाएँ।easysrc="logo.png" மற்றும் alt="Company logo" கொண்ட <img> element எழுதுக.easyhttps://www.example.com के लिए Hyperlink बनाएँ।mediumMeaningful alt Text के साथ Image जोड़ें।mediumThematic break जोड़ने वाला HTML element लिखिए।easy"Submit" text दिखाने वाला <button> element बनाएँ।easyएक Complete HTML Page बनाएँ जिसमें Title, तीन Headings, तीन Paragraphs, एक Link, एक Image, एक Thematic Break और एक Button हो।challenge
04HTML Elements
10 challengesएक HTML <h1> element लिखिए जो "Welcome to HTML" text दिखाए।easyएक HTML <h1> element लिखिए जो "My First Page" text दिखाए।easyएक HTML <p> element लिखिए जो "HTML is easy to learn." text दिखाए।easyएक HTML <p> element लिखिए जो "Welcome to HTML" text दिखाए।easyएक HTML <a> element लिखिए जो "Visit Google" text दिखाए और href attribute का उपयोग करके "https://www.google.com" से link करे।easyएक HTML <a> element लिखिए जो "Visit Google" text दिखाए और "https://www.google.com" पर link करे।easyएक HTML <img> element लिखिए जो "photo.jpg" से image दिखाए और जिसका alt text "A beautiful flower" हो।easyएक HTML <img> element लिखिए जो "photo.jpg" से image दिखाए और alt text के रूप में "My Photo" का उपयोग करे।medium<ul> और <li> elements का उपयोग करके एक HTML unordered list लिखिए जिसमें तीन items हों: "HTML", "CSS" और "JavaScript"।easy<ul> और <li> elements का उपयोग करके एक HTML unordered list लिखिए जिसमें तीन items हों: "HTML", "CSS" और "JavaScript"।medium