HTML Introduction — Challenge
HTML යනු කුමක්ද, HTML Elements ක්රියා කරන්නේ කෙසේද සහ සරල උදාහරණ හා පුහුණු අභ්යාස භාවිතයෙන් ඔබේ පළමු HTML Document එක සාදා ගන්නේ කෙසේද යන්න ඉගෙන ගන්න.
This content is not yet available in si. Showing English version.
View in English →Apply what you've learned. Each challenge includes starter code and test cases.
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.
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>Create a paragraph element
easyWrite an HTML <p> element that displays the text "Welcome to HTML".
<p></p>Create a hyperlink
easyWrite an HTML <a> element that links to "https://example.com" and displays the text "Visit Website".
<a href=""></a>Create a heading and paragraph
easyWrite an HTML <h1> element displaying "About HTML" and a <p> element displaying "HTML structures web pages.".
<h1></h1>
<p></p>Add an image to a web page
easyWrite an HTML <img> element with src set to "photo.jpg" and alt set to "A beautiful landscape".
<img src="" alt="">Create an unordered list
easyWrite an HTML unordered list using <ul> and <li> elements with two items: "HTML" and "CSS".
<ul>
<li></li>
<li></li>
</ul>Create a link to another website
easyWrite an HTML <a> element that links to "https://www.example.com" and displays the text "Open Example".
<a href=""></a>Create a heading element
easyWrite an HTML <h1> element that displays the text "My First Page".
<h1></h1>Build a simple HTML page
mediumWrite a complete HTML page with an <h1> heading "Welcome" and a <p> paragraph saying "Hello World".
<h1></h1>
<p></p>