Chapter 010mChallenge

HTML Introduction — Challenge

HTML के हो, HTML Elements कसरी काम गर्छन् र सरल उदाहरण तथा अभ्यासहरूको मद्दतले आफ्नो पहिलो HTML Document कसरी बनाउने भन्ने कुरा सिक्नुहोस्।

This content is not yet available in ne. Showing English version.

View in English →

Apply what you've learned. Each challenge includes starter code and test cases.

Create a basic HTML document

easy

Write a basic HTML5 document with <!DOCTYPE html>, <html>, <head>, and <body> elements. Set the page title to "My Website" using the <title> element.

STARTER CODE
<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<body>

</body>
</html>
1 test cases
Start Challenge

Create a paragraph element

easy

Write an HTML <p> element that displays the text "Welcome to HTML".

STARTER CODE
<p></p>
1 test cases
Start Challenge

Create a hyperlink

easy

Write an HTML <a> element that links to "https://example.com" and displays the text "Visit Website".

STARTER CODE
<a href=""></a>
1 test cases
Start Challenge

Create a heading and paragraph

easy

Write an HTML <h1> element displaying "About HTML" and a <p> element displaying "HTML structures web pages.".

STARTER CODE
<h1></h1>
<p></p>
1 test cases
Start Challenge

Add an image to a web page

easy

Write an HTML <img> element with src set to "photo.jpg" and alt set to "A beautiful landscape".

STARTER CODE
<img src="" alt="">
1 test cases
Start Challenge

Create an unordered list

easy

Write an HTML unordered list using <ul> and <li> elements with two items: "HTML" and "CSS".

STARTER CODE
<ul>
  <li></li>
  <li></li>
</ul>
1 test cases
Start Challenge

Create a link to another website

easy

Write an HTML <a> element that links to "https://www.example.com" and displays the text "Open Example".

STARTER CODE
<a href=""></a>
1 test cases
Start Challenge

Create a heading element

easy

Write an HTML <h1> element that displays the text "My First Page".

STARTER CODE
<h1></h1>
1 test cases
Start Challenge

Build a simple HTML page

medium

Write a complete HTML page with an <h1> heading "Welcome" and a <p> paragraph saying "Hello World".

STARTER CODE
<h1></h1>
<p></p>
2 test cases
Start Challenge