Tell us what’s happening:
Need help with my code.
I looked up the problems that are still wrong. I also passed my code through a validator and I. can’t seem to find the problems.
thanksss
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>CSS</title>
<!--- Head HTML goes here -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<!--- Link to styles in CSS tab -->
<link rel='stylesheet' type='text/css' media='screen' href='main.css'>
</head>
<body>
<main id="main-doc">
<section class="main-section" id="CSS_Help_Script">
<header>CSS Help Script</header>
<nav id="navbar">
<header>CSS Help Script</header>
<a class="nav-link" href="#CSS_Help_Script">CSS Help Script</a></nav>
<p>This script will help you understand CSS selectors</p>
<p>They are used to select different HTML elements</p>
<code>You will find them below</code>
</section>
<section class="main-section" id="CSS_Selectors">
<header>CSS Selectors</header>
<a class="nav-link" href="#CSS_Selectors">CSS Selectors</a>
<p>CSS selectors are used to find/ select html elements</p>
<p>Here you'll find four selector types</p>
<code>look here</code>
</section>
<section class="main-section" id="Definition_and_Usage">
<header>Definition and Usage</header>
<a class="nav-link" href="#Definition_and_Usage">Definition and Usage.
</a>
<code>look here</code>
<ul>
<li class="selector">*</li>
</ul>
</section>
<section class="main-section" id="CSS_Simple_Selectors" >
<header>CSS Simple Selectors</header>
<a class="nav-link" href="#CSS_Simple_Selectors">CSS Simple Selectors</a>
<p>The simple selectors select elements based on element-name, id, and class.</p>
<p>Try it out</p>
<code>look here</code>
<ul>
<li class="selector">.class</li>
<li class="selector">element</li>
<li class="selector">#id</li>
</ul>
</section>
<section class="main-section" id="CSS_Attribute_Selectors">
<header>CSS Attribute Selectors</header>
<a class="nav-link" href="#CSS_Attribute_Selectors">CSS Attribute Selectors</a>
<p>The attribute selector selects HTML elements with a given attribute set.</p>
<p>Try it out</p>
<code>look here</code>
<ul>
<li class="selector">attribute=value</li>
<li class="selector">attribute$=value</li>
<li class="selector">attribute~=value</li>
</ul>
</section>
<section class="main-section" id="CSS_Nesting_Selector">
<header>CSS Nesting Selectors</header>
<a class="nav-link" href="#CSS_Nesting_Selectors">CSS Nesting Selectors</a>
<p>There is only one nesting selector</p>
<p>Try it out</p>
<code>look here</code>
<ul>
<li class="selector">&</li>
</ul>
</section>
</nav>
</main>
</body>
</html>
/* file: styles.css */
@media screen and (max-width:750px){
width:50%
}
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0
Challenge Information:
Technical Documentation Page - Build a Technical Documentation Page