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.
Apply what you've learned. Each challenge includes starter code and test cases.
Create a heading element
easyWrite an HTML <h1> element that displays the text "Welcome to HTML".
<h1></h1>Create a heading element
easyWrite an HTML <h1> element that displays the text "My First Page".
<h1></h1>Create a paragraph element
easyWrite an HTML <p> element that displays the text "HTML is easy to learn.".
<p></p>Create a paragraph element
easyWrite an HTML <p> element that displays the text "Welcome to HTML".
<p></p>Create a hyperlink element
easyWrite an HTML <a> element that displays the text "Visit Google" and links to "https://www.google.com".
<a href=""></a>Create a hyperlink element
easyWrite an HTML <a> element that displays the text "Visit Google" and links to "https://www.google.com" using the href attribute.
<a href=""></a>Create an image element
easyWrite an HTML <img> element that displays an image from "photo.jpg" and has the alt text "A beautiful flower".
<img src="" alt="">Create an image element
mediumWrite an HTML <img> element that displays an image from "photo.jpg" and uses "My Photo" as its alt text.
<img src="" alt="">Create an unordered list
easyWrite an HTML unordered list using <ul> and <li> elements that contains three items: "HTML", "CSS", and "JavaScript".
<ul>
<li></li>
<li></li>
<li></li>
</ul>Create an unordered list
mediumWrite an HTML unordered list using <ul> and <li> elements that contains three items: "HTML", "CSS", and "JavaScript".
<ul>
<li></li>
<li></li>
<li></li>
</ul>