HTML Editors — Challenge
ਜਾਣੋ ਕਿ HTML Editor ਕਿਵੇਂ ਚੁਣਨਾ ਹੈ, ਆਪਣੀ ਪਹਿਲੀ HTML File ਕਿਵੇਂ ਬਣਾਉਣੀ ਹੈ, ਉਸਨੂੰ ਸਹੀ ਤਰੀਕੇ ਨਾਲ Save ਕਿਵੇਂ ਕਰਨਾ ਹੈ ਅਤੇ Browser ਵਿੱਚ ਆਪਣਾ Web Page ਕਿਵੇਂ ਦੇਖਣਾ ਹੈ।
This content is not yet available in pa. Showing English version.
View in English →Apply what you've learned. Each challenge includes starter code and test cases.
Create a basic HTML file
easyWrite the basic HTML document structure using <!DOCTYPE html>, <html>, <head>, and <body> tags.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</body>
</html>Format HTML code using indentation
easyWrite the following HTML structure with proper indentation: a body containing a div, and inside the div an h2 element with the text "About Us".
<body>
</body>Create a web page heading and paragraph
easyWrite an <h1> element displaying "Welcome to HTML" and a <p> element displaying "I am learning HTML." inside the <body> element.
<body>
<h1></h1>
<p></p>
</body>Complete an HTML element using editor suggestions
easyComplete the anchor element so that it links to https://example.com and displays the text "Visit Website".
<a href=""> </a>Create a complete HTML web page
easyCreate 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."
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<h1></h1>
<p></p>
</body>
</html>Identify and fix an HTML syntax error
easyThe following HTML code has an incorrect closing tag. Rewrite it with the correct closing tag: <strong>Important Notice</p>
<strong>Important Notice</p>