Chapter 010mChallenge
HTML Introduction — Challenge
ਜਾਣੋ ਕਿ HTML ਕੀ ਹੈ, HTML Elements ਕਿਵੇਂ ਕੰਮ ਕਰਦੇ ਹਨ ਅਤੇ ਸਧਾਰਨ ਉਦਾਹਰਨਾਂ ਤੇ ਅਭਿਆਸਾਂ ਦੀ ਮਦਦ ਨਾਲ ਆਪਣਾ ਪਹਿਲਾ HTML Document ਕਿਵੇਂ ਬਣਾਇਆ ਜਾਂਦਾ ਹੈ।
This content is not yet available in pa. Showing English version.
View in English →Create a basic HTML document
easyWrite a basic HTML5 document with <!DOCTYPE html>, <html>, <head>, and <body> elements. Set the page title to "My Website" using the <title> element.
Test cases (1)
1 · document_structure
expected: <!DOCTYPE html>
<html>
<head>
<title>My Website</title>
</head>
<body>
</body>
</html>
Hint
A basic HTML5 document starts with <!DOCTYPE html>. The <html> element contains the document, <head> contains metadata such as the page title, and <body> contains visible page content.
html
Loading editor...