Chapter 310mChallenge

HTML Elements Explained with Examples — Challenge

Learn HTML Elements with simple Code Examples. Understand Start Tags, End Tags, Nested Elements, Void Elements, and correct HTML Structure.

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 heading element

easy

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

STARTER CODE
<h1></h1>
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

Create a paragraph element

easy

Write an HTML <p> element that displays the text "HTML is easy to learn.".

STARTER CODE
<p></p>
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 element

easy

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

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

Create a hyperlink element

easy

Write an HTML <a> element that displays the text "Visit Google" and links to "https://www.google.com" using the href attribute.

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

Create an image element

easy

Write an HTML <img> element that displays an image from "photo.jpg" and has the alt text "A beautiful flower".

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

Create an image element

medium

Write an HTML <img> element that displays an image from "photo.jpg" and uses "My Photo" as its alt text.

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 that contains three items: "HTML", "CSS", and "JavaScript".

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

Create an unordered list

medium

Write an HTML unordered list using <ul> and <li> elements that contains three items: "HTML", "CSS", and "JavaScript".

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