Chapter 18mChallenge

HTML Editors — Challenge

HTML Editor कसरी छनोट गर्ने, आफ्नो पहिलो HTML File कसरी बनाउने, सही तरिकाले Save गर्ने र Browser मा Web Page कसरी हेर्ने भन्ने कुरा सिक्नुहोस्।

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

View in English →

Create a complete HTML web page

easy

Create a complete HTML document using <!DOCTYPE html>, <html>, <head>, and <body> elements. Set the page title to "My First Website" using the <title> element. Inside the <body>, add an <h1> heading displaying "Hello World" and a <p> paragraph displaying "This is my first web page."

Test cases (4)
1 · doctype
expected: <!DOCTYPE html>
2 · page_title
expected: <title>My First Website</title>
3 · main_heading
expected: <h1>Hello World</h1>
4 · paragraph
expected: <p>This is my first web page.</p>
Hint
A complete HTML page uses <!DOCTYPE html> to declare the document type. The <title> element inside <head> sets the browser tab title. The <h1> and <p> elements inside <body> display the page heading and paragraph.
html
Loading editor...