Technical Documentation Page - Build a Technical Documentation Page

Tell us what’s happening:
Hey guys, I’m back after a break. Can you please tell me where am I going wrong here? I made a documentation page on Cryptocurrency, but there are three issues occurring in my code.
I did this challenge long ago in codepen but now doing it here, it is giving me errors in terms of the main section and navlink.

I just need a clue.

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy-to-read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Here’s the code:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Technical Documentation Page</title>
    <link rel="stylesheet" href="styles.css">
    </head>
    <body>
      <nav id="navbar">
  <header>What is CryptoCurrency</header>
  <ul>
    <li><a class="nav-link" href="#introduction">Introduction</a></li>
    <li><a class="nav-link" href="#what_is_cryptocurrency">What is Cryptocurrency?</a></li>
    <li><a class="nav-link" href="#purpose">Purpose</a></li>
    <li><a class="nav-link" href="#how_does_it_works">How does it works?</a></li>
    <li><a class="nav-link" href="#how_it_is_made">How it is made?</a></li>
    <li><a class="nav-link" href="#can_crypto_be_converted_to_cash">Can crypto be converted to cash?</a></li>
    <li><a class="nav-link" href="#how_safe_is_crypto">How safe is Crypto?</a></li>
    <li><a class="nav-link" href="#is_crypto_good_or_bad">Is Crypto Good or Bad?</a></li>
    <li><a class="nav-link" href="#what_are_the_problems_with_crypto">What are the problems with Crypto?</a></li>
    <li><a class="nav-link" href="#is_crypto_illegal">Is Crypto illegal?</a></li>
    <li><a class="nav-link" href="#will_banks_use_crypto">Will banks use Crypto?</a></li>
    <li><a class="nav-link" href="#what_is_the_disadvantages_of_crypto">What is the disadvantages of Crypto?</a></li>
    <li><a class="nav-link" href="#can_you_trust_bitcoin">Can you trust Bitcoin?</a></li>
    <li><a class="nav-link" href="#can_you_get_scammed_on_bitcoin">Can you get scammed on Bitcoin?</a></li>
    <li><a class="nav-link" href="#can_bitcoin_crash">Can Bitcoin crash?</a></li>
    <li><a class="nav-link" href="#why_we_should_not_use_bitcoin">Why we should not use Bitcoin?</a></li>
    <li><a class="nav-link" href="#code_example_of_bitcoin">Code example of bitcoin?</a></li>
  </ul>
</nav>
<main id="main-doc">
  <section class="main-section" id="introduction">
    <header>Introduction</header>
    <article>
      <p>We are living in a digital world where everything is heading towards pure digitilization that is most of our works are becoming paperless. Even money transfer and investments are paperless. One of such digital payment sector is cryptocurrency.
      </p>
    </article>
  </section>
  
  <section clas="main-section" id="what_is_cryptocurrency">
    <header>What is Cryptocurrency</header>
    <article>
      <ul>
        <li>Crypto currency is a digital money or virtual money. That is money is not available physically and it is very secure.</li>
        <li>In simple words we can say cryptocurrency is a money exchange process.</li>
        <li>Most popular example for cryptocurrency is <strong>Bitcoin</strong>. It is the finest ever introduced cryptocurrency. Some other examples for cryptocurrency are Ethereum and XRP.</li>
        <li>It is not possible to counterfeit or double spend because it is secured by cryptography. It is a decentralised process hence they are not controlled by anyone.</li>
        <li>Cryptocurrencies are tax free and they are not insured too. Government or banks are not responsible for cryptocurrency.Even many countries have banned cryptocurrency.</li>
      </ul>
    </article>
  </section>
  <section class="main-section" id="purpose">
    <header>Purpose</header>
    <article>
      <p>The main purpose of cryptocurrency is to reduce the risk involved in traditional currency. It is very easy to use. We can access it anywhere and anytime. All we need is a smart phont and a good net connection. (NO JOKE!). In cryptocurrency, the power and the responsibilities are in hands of the currency holder. They help in solving real world problems.
      </p>
    </article>
  </section>
  <section class="main-section" id="how_does_it_works">
    <header>How does it works?</header>
    <article>
      <ul>
        <li>It used blockchain technology. It is a very brilliant technology because both the buyer and seller details are viewable to each other and so no broker is needed. </li>
        <li>For example, if we need to buy a share from a stock market we can do it easily with the help of a broker. We will confirm the exchange order and then we will receive the shares. We don't need to contact the seller in person.</li>
        <li>The reason for choosing a broker is we don't know if the seller has the stock or not. This is know as principle of novation.</li>
        <li>In cryptocurrency, involvement of third person is not needed because all the transactions are stored in a common location and it is viewable. The identity of the person who made the transaction is encrypted.</li>
      </ul>
    </article>
  </section>
  <section class="main-section" id="how_it_is_made">
    <header>How it is made?</header>
    <article>
      <p>Most of the cryptocurrencies are made using a process called mining. Mining is nothing but an algorithm. It is the process of adding transaction to the blockchain ledger. Via nodes on the network with the consensus achieved through a proof of system. But not all cryptocurrencies are made by mining. Some currencies are created using various other techniques such as tokens.</p>
    </article>
  </section>
  <section class="main-section" id="can_crypto_be_converted_to_cash">
    <header>Can crypto be converted to cash?</header>
    <p>The answer of the above question is yes. For example one of the cryptocurrency Bitcoin can be exchange into cash on a crypto exchange. There are platforms such as coinbase and kraken that helps the users to convert digital money to physical cash.</p>
    </article>
  </section>
<section class="main-section" id="how_safe_is_crypto">
  <header>How safe is cryptocurrency?</header>
  <article>
    <p>Transactions done using cryptocurrencies are highly secure. There is a chance of earning huge amount wh en compared to mutual funds or share market but it comes with a high risk. Because the volatility of cryptocurrency is very high. Either we earn hgih return or lose what we have.</p>
  </article>
</section>
<section class="main-section" id="is_crypto_good_or_bad">
  <header>Is crypto good or bad?</header>
  <article>
    <ul>
      <li>Every coin has two faces, similarly there are both good and bad about investing in cryptocurrency. One should know both the faces before investing. Let us consider only the good side about investing. </li>\
      <li>Returns may be massive and everything is instant. So you can buy or sell when there is fluctuation in the market very easily. </li>
      <li>There is a cold wallet storage option where we can control our own private key. This key helps us to access our coin in the block chain. </li>
    </ul>
  </article>
</section>
<section class="main-section" id="what_are_the_problems_with_crypto">
  <header>What are the problems with Crypto?</header>
  <article>
  <p>Major problem is cryptocurrency is the lack of regulation. Next problem is volatility. For example in 2017 cryptocurrency like Bitcoin increased suddenly upto 1000 percentage and then came down. Another problem is fear about hacking and scams due to the reason of digitalisation. </p>
  </article>
</section>
<section class="main-section" id="is_crypto_illegal">
  <header>Is crypto illegal?</header>
  <article>
    <p>It varies from one country to another. In some countries it is legal and some countris have banned it. Crypto is legal in some of the most developed countries like USA and UK. It is also legal in developing coutnry like India but it does not have any regulatory framework. Countries like Algeria, Morocco, Nepal, Pakistan and Vietnam have banned it.</p>
  </article>
</section>
<section class="main-section" id="will_banks_use_crypto">
  <header>Will banks use Cryptocurrency?</header>
  <article>
    <p>Most of the banks are against the idea of cryptocurrencies because it is a treat to most traditional banks. There are also certain types of banks supporting cryptocurrencies and investing in it.</p>
  </article>
</section>
<section class="main-section" id="what_is_the_disadvantages_of_crypto">
  <header>What is the disadvantages of Cryptocurrency?</header>
  <article>
    <p>One of the biggest drawback of cryptocurrency is the security. There are stories where exchanges are hacked and peoples who held coins in those exchanges lost everything. There are lot of people with less experiences and knowledge which leads to huge loss. Since it is fully digitalized there is a technical difficulty such as network issues and so on.</p>
  </article>
</section>
<section class="main-section" id="can_you_trust_bitcoin">
  <header>Can you trust Bitcoin</header>
  <article>
    <p>Yes Bitcoins are really safe. If you are ready to take risk and if you are ready for investing then be ready for all kinds of high and low. If none of Bitcoin's available is less and none of bidders are very large in number the value automatically increases.<p>
  </article>
</section>
<section class="main-section" id="can_you_get_scammed_on_bitcoin">
  <header>Can you get scammed on Bitcoin?</header>
  <article>
    <p>Yes there is a chance of getting scammed on Bitcoin. Some such scams are:</p>
    <ul>
      <li>Fake ICO's</li>
      <li>Social media scams</li>
      <li>Fraudulent exchange</li>
      <li>Imposter websites</li>
      <li>Scamming emails</li>
    </ul>
  </article>
</section>
<section class="main-section" id="can_bitcoin_crash">
  <header>Can a Bitcoin crash?</header>
  <article>
    <p>Yes bitcoin may crash. But the gains achieved using bitcoin are higher when compared to the losses. But a bitcoin reducing to zero is nearly impossible.</p>
  </article>
</section>
<section class="main-section" id="why_we_should_not_use_bitcoin">
  <header>Why we should not use Bitcoin?</header>
  <article>
    <ul>
      <li>Highly volatile</li>
      <li>Lack of knowledge and experience</li>
      <li>Unregulated space</li>
    </ul>
  </article>
</section>

<section class="main-section" id="code_example_of_bitcoin">
  <header>Code example of Bitcoin</header>
  <article>
    <code>int AES256CBCEncrypt::Encrypt(const unsigned char* data, int size, unsigned char* out) const
{
    return CBCEncrypt(enc, iv, data, size, pad, out);
}

AES256CBCEncrypt::~AES256CBCEncrypt()
{
    memset(iv, 0, sizeof(iv));
}
    </code>
    
    <code>int AES256CBCDecrypt::Decrypt(const unsigned char* data, int size, unsigned char* out) const
{
    return CBCDecrypt(dec, iv, data, size, pad, out);
}

AES256CBCDecrypt::~AES256CBCDecrypt()
{
    memset(iv, 0, sizeof(iv));
}
    </code>
    
    <code>void AES256Encrypt::Encrypt(unsigned char ciphertext[16], const unsigned char plaintext[16]) const
{
    AES256_encrypt(&ctx, 1, ciphertext, plaintext);
}

AES256Decrypt::AES256Decrypt(const unsigned char key[32])
{
    AES256_init(&ctx, key);
}

AES256Decrypt::~AES256Decrypt()
{
    memset(&ctx, 0, sizeof(ctx));
}
    </code>
    
    <code>#include <crypto/ctaes/ctaes.c>
}

AES256Encrypt::AES256Encrypt(const unsigned char key[32])
{
    AES256_init(&ctx, key);
}

AES256Encrypt::~AES256Encrypt()
{
    memset(&ctx, 0, sizeof(ctx));
}
      </code>
      
      
      <code>void ChaCha20::SetKey(const unsigned char* k, size_t keylen)
{
    const unsigned char *constants;

    input[4] = ReadLE32(k + 0);
    input[5] = ReadLE32(k + 4);
    input[6] = ReadLE32(k + 8);
    input[7] = ReadLE32(k + 12);
    if (keylen == 32) { /* recommended */
        k += 16;
        constants = sigma;
    } else { /* keylen == 16 */
        constants = tau;
    }
    input[8] = ReadLE32(k + 0);
    input[9] = ReadLE32(k + 4);
    input[10] = ReadLE32(k + 8);
    input[11] = ReadLE32(k + 12);
    input[0] = ReadLE32(constants + 0);
    input[1] = ReadLE32(constants + 4);
    input[2] = ReadLE32(constants + 8);
    input[3] = ReadLE32(constants + 12);
    input[12] = 0;
    input[13] = 0;
    input[14] = 0;
    input[15] = 0;
}
        
      </code>
      </article>
    </section>

<section class="main-section" id="references">
  <header>Reference</header>
  <article>
    <p>Know all the ups and downs, before investing into crypto.</p>
    <p>All the documentation in this page is taken from <a href="https://docs.google.com/presentation/d/1EIxvZtAs_WIJ_sPm7d4uLUdFiZNkgNAN/edit#slide=id.p18" target="_blank">What is Cryptocurrency</a>.</p>
  </article>
</section> 
</main>
      </body>

    </html>

Please tell me

Hi @AresHawkins, can we get the link to the problem?

But I pasted the code here.

For the clues, i have posted similar hints to the solution to this problem before, please check them out :+1: :slight_smile:

Thanks, buddy. Sure look into it and solve my problem.