Tell us what’s happening:
Please help find errors for Step 9. I cannot figure out the step 9 problem.
Current Error messages for my Program are below:
// running tests
9. After the label elements, there should be an unordered list with the class sub-item.
10. The li inside the ul with the class sub-item should have an anchor element with the class sub-item-link.
14. Your a elements should not have any text decorations.
18. The links should have an outline when focused.
// tests completed
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Styled To-Do List</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<ul class="todo-list">
<li>
<input id="Item 1" type="checkbox">
<label for="Item 1">Item 1</lable>
<ul class="sub-item">
<li>
<a class="sub-item-link" href="https://www.google.com" target="_blank">Item A</a>
</li>
</ul>
</li>
<li>
<input id="Item 2" type="checkbox">
<label for="Item 2">Item 2</lable>
<ul class="sub-item">
<li>
<a class="sub-item-link" href="https://www.google.com" target="_blank">Item B</a>
</li>
</ul>
</li>
<li>
<input id="Item 3" type="checkbox">
<label for="Item 3">Item 3</lable>
<ul class="sub-item">
<li>
<a class="sub-item-link" href="https://www.google.com" target="_blank">Item C</a>
</li>
</ul>
</li>
<li>
<input id="Item 4" type="checkbox">
<label for="Item 4">Item 4</lable>
<ul class="sub-item">
<li>
<a class="sub-item-link" href="https://www.google.com" target="_blank">Item D</a>
</li>
</ul>
</li>
</ul>
</body>
</html>
/* file: styles.css */
a:link{
color:green;
}
a:visited{
color:purple;}
a:hover{
color:orange;}
a:focused{
outline: 2px solid blue;}
a:active{color:red;}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36 Edg/148.0.0.0
Challenge Information:
Build a Stylized To-Do List - Build a Stylized To-Do list