HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URL's added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<nav id="navbar">
<header class="navHeader">PC Parts Quick Links</header>
<ul>
<li class="nav-list"><a class="nav-link" href=#Motherboard>Motherboard</a>
<li class="nav-list"><a class="nav-link" href=#Central_Processing_Unit>Central Processing Unit</a>
<li class="nav-list"><a class="nav-link" href=#RAM>RAM</a>
<li class="nav-list"><a class="nav-link" href=#Graphics_Card>Graphics Card</a>
<li class="nav-list"><a class="nav-link" href=#Internal_Storage>Internal Storage</a>
<li class="nav-list"><a class="nav-link" href=#Peripherals>Peripherals</a>
</ul>
</nav>
<Main id="main-doc">PC Hardware
<img src="https://www.bask.com/assets/uploads/blog/Inside-your-PC-tower.png" alt="Inside PC Tower">
<div id="Topics">
<br></br>
<section class="main-section" id="Motherboard"><header><u>Motherboard</u></header>
<p>The motherboard is the main circuit board of your computer and is also known as the mainboard or logic board. If you ever open your computer, the biggest piece of silicon you see is the motherboard. Attached to the motherboard, you'll find the CPU, ROM, memory RAM expansion slots, PCI slots, and USB ports. It also includes controllers for devices like the hard drive, DVD drive, keyboard, and mouse. Basically, the motherboard is what makes everything in your computer work together.</p>
<p><u>Size Matters:</u><br></br>ATX is the de facto standard and offers the most space for plugs and slots.
Micro-ATX is 2.4-inches shorter, which means less room for expansion slots.
Mini-ITX can make for a tiny PC, but you’ll usually only have room for one add-in card (like a graphics card), and fewer connectors for storage and RAM.</p>
<ul>Popular Brands
<li>ASUS</li>
<li>Asrock</li>
<li>MSI</li>
<li>EVGA</li>
<li>Gigabyte</li>
</ul>
<code>const pcHardware = "Motherboard"</code>
</section>
<section class="main-section" id="Central_Processing_Unit"><header><u>Central Processing Unit</u></header>
<p>Stands for "Central Processing Unit." The CPU is the primary component of a computer that processes instructions. It runs the operating system and applications, constantly receiving input from the user or active software programs. It processes the data and produces output, which may be stored by an application or displayed on the screen.</p>
<code>const pcHardware = "Central Processing Unit"</code>
<ul>Popular Brands
<li>Intel</li>
<li>AMD</li>
</ul>
</section>
<section class="main-section" id="RAM"><header><u>RAM</u></header>
<p>Random access memory (RAM) is a computer's short-term memory, which it uses to handle all active tasks and apps. None of your programs, files, games, or streams would work without RAM. Here, we’ll explain exactly what RAM is, what RAM means, and why it’s so important. Then, learn how to lighten the load on your computer’s RAM with a specialized performance booster.</p>
<ul>Types of RAM
<li>DDR3</li>
<li>DDR4</li>
<li>DDR5</li>
</ul>
<code>const pcHardware = "RAM"</code>
</section>
<section class="main-section" id="Graphics_Card"><header><u>Graphics Card</u></header>
<p>A graphics card is a type of display adapter or video card installed within most computing devices to display graphical data with high clarity, color, definition and overall appearance. A graphics card provides high-quality visual display by processing and executing graphical data using advanced graphical techniques, features and functions.</p>
<p>A graphics card is primarily designed to remove the graphical processing tasks from the processor or RAM. It includes a dedicated graphical processing unit (GPU) and a dedicated RAM that help it to process graphical data quickly. Like most processors, a graphics card also has a dedicated heat sink to keep the heat out of the GPU. A graphics card enables the display of 3-D images, image rasterization, higher pixel ration, a broader range of colors and more. Moreover, a graphics card includes various expansion ports such as AGP, HDMI, TV and multiple monitor connectivity. A graphics card can be integrated within the motherboard or be added on as an extension card.</p>
<ul>Popular Brands
<li>nVidia</li>
<li>AMD</li>
</ul>
<code>const pcHardware = "Graphics Card"</code>
</section>
<section class="main-section" id="Internal_Storage"><header><u>Internal Storage</u></header>
<p>The hard drive is what stores all your data. It houses the hard disk, where all your files and folders are physically located. A typical hard drive is only slightly larger than your hand, yet can hold over 100 GB of data. The data is stored on a stack of disks that are mounted inside a solid encasement. These disks spin extremely fast (typically at either 5400 or 7200 RPM) so that data can be accessed immediately from anywhere on the drive. The data is stored on the hard drive magnetically, so it stays on the drive even after the power supply is turned off.</p>
<p>A solid-state drive (SSD) is a new generation of storage device used in computers. SSDs use flash-based memory, which is much faster than a traditional mechanical hard disk. Upgrading to an SSD is one of the best ways to speed up your computer. Learn how SSDs work and how to keep them optimized with a specialized performance-boosting tool.</p>
<ul>Types of Internal Storage
<li>NVME SSD</li>
<li>SATA SSD (2.5")</li>
<li>Hard Drive (2.5" or 3.5")</li>
</ul>
<code>const pcHardware = "Internal Storage"</code>
</section>
<section class="main-section" id="Peripherals"><header><u>Peripherals</u></header>
<p>Say you just bought a new computer and, with excitement, you unpack it and set it all up. The first thing you want to do is print out some photographs of the last family party. So it's time to head back to the store to buy a printer. A printer is known as a peripheral device.
</p>
<p>A computer peripheral is a device that is connected to a computer but is not part of the core computer architecture. The core elements of a computer are the central processing unit, power supply, motherboard and the computer case that contains those three components. Technically speaking, everything else is considered a peripheral device. However, this is a somewhat narrow view, since various other elements are required for a computer to actually function, such as a hard drive and random-access memory (or RAM).</p>
<ul>Periphals include things such as:
<li>Chassis Fans</li>
<li>CPU Fans</li>
<li>Monitors</li>
<li>Keyboard and Mouse</li>
<li>PC Case</li>
</ul>
<code>const pcHardware = "Peripherals"</code>
</section>
</div>
</main>
main {
text-align: center;
font-family: trebuchet ms;
font-size: 200%;
margin-left: 20%;}
img {
max-width: 20%;
height: auto;
display: block;
margin-left: auto;
margin-right: auto;
padding-top: 20px;
margin-bottom: -40px;
}
@media screen and (max-width: 1300px)
{main {
margin-left: 375px;
font-size: 170%;
}}
.navHeader {
font-size: 140%;
font-family: trebuchet ms;
text-align: center;
}
#navbar {
position: fixed;
top: 0;
left: 0;
top: 0px;
left: 0px;
height: 600px;
border-right: solid;
border-width: 2px;
background-color: mediumseagreen;
}
@media screen and (max-width: 1300px) {
#navbar {
width: 30%
}
}
.nav-link{
font-family: trebuchet ms;
font-size: 500%;
list-style-type: none;
text-align: left;
}
@media screen and (max-width: 600px){
.nav-list {
font-size: 40%
}
}
.nav-list {
list-style-type:none;
text-align: left;
margin: auto;
padding-top: 8px;
padding-bottom: 8px;
display: flex;
}
a {
text-decoration: none;
color: black;
}
header {
font-size: 75%;
}
p{
font-size: 55%;
}
code {
font-size: 40%
}
ul {
font-size: 60%;
margin-left: -2%;
}
li {
font-size: 45%;
margin-left: 48.5%;
text-align: left;
}
;
Also see: Tab Triggers