Tell us what’s happening:
After I run the css rule a{text-decoration:none;} , still the error persists: “14.the links on the page should have no underline by default”
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 class="todo-item">
<input type="checkbox" id="linkedin">
<label for="linkedin">Find Me on LinkedIn</label>
<ul class="sub-item">
<li><a href="www.google.com" target="_blank" class="sub-item-link">Linke LinkedIn</a></li>
</ul>
</li>
<li class="todo-item">
<input type="checkbox" id="linkedin">
<label for="linkedin">Find Me on LinkedIn</label>
<ul class="sub-item">
<li><a href="www.google.com" target="_blank" class="sub-item-link">Linke LinkedIn</a></li>
</ul>
</li>
<li class="todo-item">
<input type="checkbox" id="linkedin">
<label for="linkedin">Find Me on LinkedIn</label>
<ul class="sub-item">
<li><a href="www.google.com" target="_blank" class="sub-item-link">Linke LinkedIn</a></li>
</ul>
</li>
<li class="todo-item">
<input type="checkbox" id="linkedin">
<label for="linkedin">Find Me on LinkedIn</label>
<ul class="sub-item">
<li><a href="www.google.com" target="_blank" class="sub-item-link">Linke LinkedIn</a></li>
</ul>
</li>
</ul>
</body>
</html>
/* file: styles.css */
.todo-list {
list-style-type: none;
}
.sub-item-link {
text-decoration: none;
}
.sub-item-link:hover,
.sub-item-link:focus,
.sub-item-link:active {
text-decoration: none;
}
.sub-item-link{
text-decoration: none;
}
a:link {
color: #000;
}
a:visited {
color: darkolivegreen;
}
a:hover {
color: green;
}
a:active {
color: darkgreen;
}
a:focus {
outline: 2px solid #000;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:141.0) Gecko/20100101 Firefox/141.0
Challenge Information:
Build a Stylized To-Do List - Build a Stylized To-Do list
https://www.freecodecamp.org/learn/full-stack-developer/lab-stylized-to-do-list/build-a-stylized-to-do-list