Tell us what’s happening:
Both my list items and label have hyperlinks. can anyone explain what I have done wrong to me and how it’s wrong?
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Styled To-Do List</title>
</head>
<body>
<ul class="todo-list">
<li>
<input type="checkbox" id="store">
<label for="store">Gamming keyboard store</label>
<ul class="sub-item" id="">
<li><a href="https://www.freecodecamp.org/learn/full-stack-developer/lab-stylized-to-do-list/build-a-stylized-to-do-list#">game</li>
</ul>
</li>
<li>
<input type="checkbox" id="report">
<label for="report">Request Report</label>
<ul class="sub-item" id="">
<li><a href="https://www.freecodecamp.org/learn/full-stack-developer/lab-stylized-to-do-list/build-a-stylized-to-do-list#">hey</li>
</ul>
</li>
<li>
<input type="checkbox" id="warrenty">
<label for="warrenty">Phone warrenty</label>
<ul class="sub-item">
<li><a href="https://www.freecodecamp.org/learn/full-stack-developer/lab-stylized-to-do-list/build-a-stylized-to-do-list#">what</li>
</ul>
</li>
<li>
<input type="checkbox">
<label for=""></label>
<ul class="sub-item">
<li><a href=""></li>
</ul>
</li>
</ul>
</body>
</html>
/* file: styles.css */
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0
Challenge Information:
Build a Stylized To-Do List - Build a Stylized To-Do list