🌟 Exclusive Amazon Black Friday Deals 2024 🌟

Don’t miss out on the best deals of the season! Shop now 🎁

whats the purpose of the "code" option?

connorlindeman

Plant Man
Contest Moderator
5x Tank of the Month 🏆
Joined
Nov 18, 2021
Messages
4,327
Reaction score
4,682
Location
37.2431° N, 115.7930° W
1658866358853.png

Whats the point of this option?

If I add some html nothing happens.

For example:
HTML:
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Cafe Menu</title>
    <link href="styles.css" rel="stylesheet"/>
  </head>
  <body>
    <div class="menu">
      <header>
        <h1>CAMPER CAFE</h1>
        <p class="established">Est. 2020</p>
      </header>
      <hr>
      <main>
        <section>
          <h2>Coffee</h2>
          <img src="https://cdn.freecodecamp.org/curriculum/css-cafe/coffee.jpg" alt="coffee icon"/>
          <article class="item">
            <p class="flavor">French Vanilla</p><p class="price">3.00</p>
          </article>
          <article class="item">
            <p class="flavor">Caramel Macchiato</p><p class="price">3.75</p>
          </article>
          <article class="item">
            <p class="flavor">Pumpkin Spice</p><p class="price">3.50</p>
          </article>
          <article class="item">
            <p class="flavor">Hazelnut</p><p class="price">4.00</p>
          </article>
          <article class="item">
            <p class="flavor">Mocha</p><p class="price">4.50</p>
          </article>
        </section>
        <section>
          <h2>Desserts</h2>
          <img src="https://cdn.freecodecamp.org/curriculum/css-cafe/pie.jpg" alt="pie icon"/>
          <article class="item">
            <p class="dessert">Donut</p><p class="price">1.50</p>
          </article>
          <article class="item">
            <p class="dessert">Cherry Pie</p><p class="price">2.75</p>
          </article>
          <article class="item">
            <p class="dessert">Cheesecake</p><p class="price">3.00</p>
          </article>
          <article class="item">
            <p class="dessert">Cinnamon Roll</p><p class="price">2.50</p>
          </article>
        </section>
      </main>
      <hr class="bottom-line">
      <footer>
        <p>
          <a href="https://www.freecodecamp.org" target="_blank">Visit our website</a>
        </p>
        <p class="address">123 Free Code Camp Drive</p>
      </footer>
    </div>
  </body>
</html>


Nothing happens. Whats the purpose of that option?
 
it's literally what the word says...blocks of "Code"
it was added as a feature in phpBB and it's literally a thing now in pretty much all forum softwares...
people just use it to paste blocks of code inside a box to keep it neatly distinguished in their post
 
it's literally what the word says...blocks of "Code"
it was added as a feature in phpBB and it's literally a thing now in pretty much all forum softwares...
people just use it to paste blocks of code inside a box to keep it neatly distinguished in their post
I didn't understand any of that.
 
I didn't understand any of that.
back in the early days of forum software development the open source phpBB was the to go forum software used by all
and suggestions and code snippets were common in threads/posts which then came the idea of using a box for the "code" itself
which then was reused for other features as in "reply" or "quote" as used in this very forum software "xenforo" which is a knock off of vBulletin another forum software

PS: Don't ask me to dumb this one down because I have no idea how to translate this answer into "potatoes" :p :p :p
 
back in the early days of forum software development the open source phpBB was the to go forum software used by all
and suggestions and code snippets were common in threads/posts which then came the idea of using a box for the "code" itself
which then was reused for other features as in "reply" or "quote" as used in this very forum software "xenforo" which is a knock off of vBulletin another forum software

PS: Don't ask me to dumb this one down because I have no idea how to translate this answer into "potatoes" :p :p :p
I didn't understand any of that! I will just stay uninformed it is obvious to me I don't need to know.
 

Most reactions

Back
Top