Tell us what’s happening:
You should have the same number of .nav-link and .main-section elements.
please this part of my code is not checking and I need help
Your code so far
<!-- DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main id="main-doc">
<section class="main-section" id="introduction">
<header>
<h1>Introduction</h1>
</header>
<p>HTML(HyperText Markup Language) is a markup language that tells web browsers how to structure the web pages you visit. It can be as complicated or as simple as the web developer wants it to be. HTML consists of a series of elements, which you use to enclose, wrap, or mark up different parts of content to make it appear or act in a certain way. The enclosing tags can make content into a hyperlink to connect to another page, italicize words, and so on.</p>
<p>For example, consider the following line of text::</p>
<pre><code>My cat is very grumpy</code></pre>
<p>If we wanted the text to stand by itself, we could specify that it is a paragraph by enclosing it in a paragraph (<p>) element:</p>
<pre><code>(<p>)My cat is very grumpy(<p>)</code></pre>
</section>
<section class="main-section" id="anatomy_of_an_html_element">
<header>
<h1>Anatomy of an HTML element</h1>
</header>
<p>Let's further explore our paragraph element from the previous section:</p>
<img class="moderate" src="https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/Getting_started/grumpy-cat-small.png">
<p>The anatomy of our element is:</p>
<ul>
<li><strong>The opening tag:</strong> This consists of the name of the element (in this example, p for paragraph), wrapped in opening and closing angle brackets. This opening tag marks where the element begins or starts to take effect. In this example, it precedes the start of the paragraph text.</li>
<li><strong>The content:</strong> This is the content of the element. In this example, it is the paragraph text.</li>
<li><strong>The closing tag:</strong> This is the same as the opening tag, except that it includes a forward slash before the element name. This marks where the element ends. Failing to include a closing tag is a common beginner error that can produce peculiar results.</li>
</ul>
<p>The element is the opening tag, followed by content, followed by the closing tag.</p>
</section>
<section class="main-section" id="attribute">
<header>
<h1>Attribute</h1>
</header>
<p>Elements can also have attributes. Attributes look like this:</p>
<img class="moderate" src="https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/Getting_started/grumpy-cat-attribute-small.png">
<p>Attributes contain extra information about the element that won't appear in the content. In this example, the class attribute is an identifying name used to target the element with style information.</p>
<p>An attribute should have:</p>
<ul>
<li>A space between it and the element name. (For an element with more than one attribute, the attributes should be separated by spaces too.)</li>
<li>The attribute name, followed by an equal sign.</li>
<li>An attribute value, wrapped with opening and closing quote marks.</li>
</ul>
</section>
<section class="main-section" id="anatomy_of_an_html_document">
<header>
<h1>Anatomy of an HTML document</h1>
</header>
<p>Individual HTML elements aren't very useful on their own. Next, let's examine how individual elements combine to form an entire HTML page:<p>
<pre><code ><!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<title>My test page</title>
</head>
<body>
<p>This is my page</p>
</body>
</html></code></pre>
<p>Here we have:</p>
<ul>
<li><!DOCTYPE html>: The <!DOCTYPE html> is the shortest string of characters that counts as a valid doctype.</li>
<li><html></html>:The <html> element. This element wraps all the content on the page. It is sometimes known as the root element.</li>
<li><head></head>:The <head> element. This element acts as a container for everything you want to include on the HTML page, that isn't the content the page will show to viewers. This includes keywords and a page description that would appear in search results, CSS to style content, character set declarations, and more.
<p>for example:</p>
<pre><code><head>
<meta charset="UTF-8">
<title></title>
<link rel="" href="" />
</head></pre></code>
</li>
<li><meta charset="UTF-8">:The <meta> element. This element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>. The charset attribute specifies the character encoding for your document as UTF-8, which includes most characters from the vast majority of human written languages. With this setting, the page can now handle any textual content it might contain. There is no reason not to set this, and it can help avoid some problems later.</li>
<li><title></title>:The <title> element. This sets the title of the page, which is the title that appears in the browser tab the page is loaded in. The page title is also used to describe the page when it is bookmarked.</li>
<li><body></body>:The <body> element. This contains all the content that displays on the page, including text, images, videos, games, playable audio tracks, or whatever else.</li>
</ul>
</section>
<section class="main=section" id="entity_reference_including_special_characters_in_html">
<header>
<h1>Entity references: Including special characters in HTML</h1>
</header>
<p>In html, the characters <, >, ", ', and & are special characters. They are parts of the HTML syntax itself. So how do you include one of these special characters in your text? For example, if you want to use an ampersand or less-than sign, and not have it interpreted as code.</p>
<p>You do this with character references. These are special codes that represent characters, to be used in these exact circumstances. Each character reference starts with an ampersand (&), and ends with a semicolon (;).</p>
<table>
<tr>
<th>Literal Character</th>
<th>Character Reference Equivalent</th>
</tr>
<tr>
<td><</td>
<td>&lt;</td>
</tr>
<tr>
<td>></td>
<td>&gt;</td>
</tr>
<tr>
<td>"</td>
<td>&quot;</td>
</tr>
<tr>
<td>'</td>
<td>&apos;</td>
</tr>
<tr>
<td>&</td>
<td>&amp;</td>
</tr>
</table>
<p>The character reference equivalent could be easily remembered because the text it uses can be seen as less than for <, quotation for " and similarly for others.</p>
</section>
<section class="main-section" id="html_comments">
<header>
<h1>HTML Comments</h1>
</header>
<p>HTML has a mechanism to write comments in the code. Browsers ignore comments, effectively making comments invisible to the user. The purpose of comments is to allow you to include notes in the code to explain your logic or coding. This is very useful if you return to a code base after being away for long enough that you don't completely remember it. Likewise, comments are invaluable as different people are making changes and updates.</p>
<p>To write an HTML comment, wrap it in the special markers <!-- and -->. For example:</p>
<pre><code><!-- <p>I am!</p> --></code></pre>
</section>
<section class="main-section" id="reference">
<header>
<h1>Reference</h1>
</header>
<ul>
<li>All the documentation in this page is taken from <a href="https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML/Getting_started#what_is_html">MDN
</ul>
</section>
<nav id="navbar">
<header>HTML Documentation</header>
<ul>
<li><a class="nav-link" href="#introduction">Introduction</a></li>
<li><a class="nav-link" href="#anatomy_of_an_html_element">Anatomy of an HTML element</a></li>
<li><a class="nav-link" href="#attribute">Attribute</a></li>
<li><a class="nav-link" href="#anatomy_of_an_html_document">Anatomy of an HTML document</a></li>
<li><a class="nav-link" href="#entity_reference_including_special_characters_in_html">Entity references:Including special characters in HTML</a></li>
<li><a class="nav-link" href="#html_comments">HTML Comments</a></li>
<li><a class="nav-link" href="#reference">Reference</a></li>
</ul>
</nav>
file: index.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/124.0.0.0 Safari/537.36
Challenge Information:
Technical Documentation Page - Build a Technical Documentation Page