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 URLs 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 its URL and the proper URL extension.
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.
<h1> The Great Marble Race! </h1> <img src= https://www.bing.com/th?id=OIP.6c-ir1uM33TJb-jnIfugAQHaEx&w=288&h=186&c=7&o=5&pid=1.7 <p>
<p> <h1> Question </h1> <p>
How does viscosity affect the transit time of a marble? <p>
<body> <h1> My Hypothesis </h1> <p>
I think that the loser of the race will
be the most viscus liquid, beacause it takes longer to travel through very viscus liquids. <p>
<body>
<h1> Materials </h1> <p>
1. One Marble <p>
2. Hot Wheels Track <p>
3. Syrup <p>
4. Honey <p> <P>5. Water <p>
6. oil <p>
7. Glue <p>
8. Soda <p>
9. Timer <p>
<body> <p>
<h1> Setup </h1> <p>
<img src= "https://drive.google.com/uc?export=download&id=18Rk4OF6cuR98i2JQaCYp-D2n49irkqOd" alt= "our setup" style= "width: 480px; height: 300px;"> <p>
1. Set up your Hot Wheels track, set on a steep hill. <p>
2. Apply your liquid liberally near the center of the track. <p>
3. Set a marble at the top of the first of the track. <p>
4. Push the marble down the track and time it. <p>
5. Reapeat each liquid four times and find an average, make sure to clean of you track before you do the next liquid. <p>
<body>
<h1> Observations </h1> <p>
<html><head><meta content="text/html; charset=UTF-8" http-equiv="content-type"><style type="text/css">ol.lst-kix_ic6nw7u4uswl-0.start{counter-reset:lst-ctn-kix_ic6nw7u4uswl-0 0}.lst-kix_ic6nw7u4uswl-7>li:before{content:"" counter(lst-ctn-kix_ic6nw7u4uswl-7,lower-latin) ". "}.lst-kix_ic6nw7u4uswl-8>li:before{content:"" counter(lst-ctn-kix_ic6nw7u4uswl-8,lower-roman) ". "}.lst-kix_ic6nw7u4uswl-6>li{counter-increment:lst-ctn-kix_ic6nw7u4uswl-6}ol.lst-kix_ic6nw7u4uswl-7.start{counter-reset:lst-ctn-kix_ic6nw7u4uswl-7 0}ol.lst-kix_ic6nw7u4uswl-5.start{counter-reset:lst-ctn-kix_ic6nw7u4uswl-5 0}.lst-kix_ic6nw7u4uswl-4>li:before{content:"" counter(lst-ctn-kix_ic6nw7u4uswl-4,lower-latin) ". "}.lst-kix_ic6nw7u4uswl-5>li:before{content:"" counter(lst-ctn-kix_ic6nw7u4uswl-5,lower-roman) ". "}.lst-kix_ic6nw7u4uswl-6>li:before{content:"" counter(lst-ctn-kix_ic6nw7u4uswl-6,decimal) ". "}ol.lst-kix_ic6nw7u4uswl-2.start{counter-reset:lst-ctn-kix_ic6nw7u4uswl-2 0}.lst-kix_ic6nw7u4uswl-1>li{counter-increment:lst-ctn-kix_ic6nw7u4uswl-1}ol.lst-kix_ic6nw7u4uswl-3.start{counter-reset:lst-ctn-kix_ic6nw7u4uswl-3 0}.lst-kix_ic6nw7u4uswl-0>li:before{content:"" counter(lst-ctn-kix_ic6nw7u4uswl-0,decimal) ". "}.lst-kix_ic6nw7u4uswl-4>li{counter-increment:lst-ctn-kix_ic6nw7u4uswl-4}ol.lst-kix_ic6nw7u4uswl-8{list-style-type:none}ol.lst-kix_ic6nw7u4uswl-7{list-style-type:none}ol.lst-kix_ic6nw7u4uswl-6{list-style-type:none}ol.lst-kix_ic6nw7u4uswl-5{list-style-type:none}ol.lst-kix_ic6nw7u4uswl-4{list-style-type:none}ol.lst-kix_ic6nw7u4uswl-3{list-style-type:none}.lst-kix_ic6nw7u4uswl-3>li:before{content:"" counter(lst-ctn-kix_ic6nw7u4uswl-3,decimal) ". "}ol.lst-kix_ic6nw7u4uswl-8.start{counter-reset:lst-ctn-kix_ic6nw7u4uswl-8 0}.lst-kix_ic6nw7u4uswl-8>li{counter-increment:lst-ctn-kix_ic6nw7u4uswl-8}.lst-kix_ic6nw7u4uswl-1>li:before{content:"" counter(lst-ctn-kix_ic6nw7u4uswl-1,lower-latin) ". "}.lst-kix_ic6nw7u4uswl-2>li:before{content:"" counter(lst-ctn-kix_ic6nw7u4uswl-2,lower-roman) ". "}ol.lst-kix_ic6nw7u4uswl-6.start{counter-reset:lst-ctn-kix_ic6nw7u4uswl-6 0}ol.lst-kix_ic6nw7u4uswl-1.start{counter-reset:lst-ctn-kix_ic6nw7u4uswl-1 0}.lst-kix_ic6nw7u4uswl-5>li{counter-increment:lst-ctn-kix_ic6nw7u4uswl-5}ol.lst-kix_ic6nw7u4uswl-2{list-style-type:none}ol.lst-kix_ic6nw7u4uswl-1{list-style-type:none}ol.lst-kix_ic6nw7u4uswl-0{list-style-type:none}.lst-kix_ic6nw7u4uswl-2>li{counter-increment:lst-ctn-kix_ic6nw7u4uswl-2}.lst-kix_ic6nw7u4uswl-7>li{counter-increment:lst-ctn-kix_ic6nw7u4uswl-7}.lst-kix_ic6nw7u4uswl-0>li{counter-increment:lst-ctn-kix_ic6nw7u4uswl-0}.lst-kix_ic6nw7u4uswl-3>li{counter-increment:lst-ctn-kix_ic6nw7u4uswl-3}ol.lst-kix_ic6nw7u4uswl-4.start{counter-reset:lst-ctn-kix_ic6nw7u4uswl-4 0}ol{margin:0;padding:0}table td,table th{padding:0}.c4{border-right-style:solid;padding:5pt 5pt 5pt 5pt;border-bottom-color:#000000;border-top-width:1pt;border-right-width:1pt;border-left-color:#000000;vertical-align:top;border-right-color:#000000;border-left-width:1pt;border-top-style:solid;border-left-style:solid;border-bottom-width:1pt;width:67.5pt;border-top-color:#000000;border-bottom-style:solid}.c10{border-right-style:solid;padding:5pt 5pt 5pt 5pt;border-bottom-color:#000000;border-top-width:1pt;border-right-width:1pt;border-left-color:#000000;vertical-align:top;border-right-color:#000000;border-left-width:1pt;border-top-style:solid;border-left-style:solid;border-bottom-width:1pt;width:66.8pt;border-top-color:#000000;border-bottom-style:solid}.c13{border-right-style:solid;padding:5pt 5pt 5pt 5pt;border-bottom-color:#000000;border-top-width:1pt;border-right-width:1pt;border-left-color:#000000;vertical-align:top;border-right-color:#000000;border-left-width:1pt;border-top-style:solid;border-left-style:solid;border-bottom-width:1pt;width:71.2pt;border-top-color:#000000;border-bottom-style:solid}.c8{border-right-style:solid;padding:5pt 5pt 5pt 5pt;border-bottom-color:#000000;border-top-width:1pt;border-right-width:1pt;border-left-color:#000000;vertical-align:top;border-right-color:#000000;border-left-width:1pt;border-top-style:solid;border-left-style:solid;border-bottom-width:1pt;width:103.1pt;border-top-color:#000000;border-bottom-style:solid}.c14{border-right-style:solid;padding:5pt 5pt 5pt 5pt;border-bottom-color:#000000;border-top-width:1pt;border-right-width:1pt;border-left-color:#000000;vertical-align:top;border-right-color:#000000;border-left-width:1pt;border-top-style:solid;border-left-style:solid;border-bottom-width:1pt;width:237pt;border-top-color:#000000;border-bottom-style:solid}.c12{border-right-style:solid;padding:5pt 5pt 5pt 5pt;border-bottom-color:#000000;border-top-width:1pt;border-right-width:1pt;border-left-color:#000000;vertical-align:top;border-right-color:#000000;border-left-width:1pt;border-top-style:solid;border-left-style:solid;border-bottom-width:1pt;width:70.5pt;border-top-color:#000000;border-bottom-style:solid}.c7{border-right-style:solid;padding:5pt 5pt 5pt 5pt;border-bottom-color:#000000;border-top-width:1pt;border-right-width:1pt;border-left-color:#000000;vertical-align:top;border-right-color:#000000;border-left-width:1pt;border-top-style:solid;border-left-style:solid;border-bottom-width:1pt;width:103.5pt;border-top-color:#000000;border-bottom-style:solid}.c1{color:#000000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"Arial";font-style:normal}.c2{color:#000000;font-weight:400;text-decoration:none;vertical-align:baseline;font-size:12pt;font-family:"Arial";font-style:normal}.c3{color:#000000;font-weight:700;text-decoration:none;vertical-align:baseline;font-size:11pt;font-family:"Arial";font-style:normal}.c15{padding-top:0pt;padding-bottom:0pt;line-height:1.15;orphans:2;widows:2;text-align:left;height:11pt}.c0{color:#000000;font-weight:700;text-decoration:none;vertical-align:baseline;font-size:24pt;font-family:"Arial";font-style:normal}.c9{color:#000000;font-weight:700;text-decoration:none;vertical-align:baseline;font-size:12pt;font-family:"Arial";font-style:normal}.c6{padding-top:0pt;padding-bottom:0pt;line-height:1.15;orphans:2;widows:2;text-align:center}.c5{padding-top:0pt;padding-bottom:0pt;line-height:1.0;text-align:center}.c17{padding-top:0pt;padding-bottom:0pt;line-height:1.0;text-align:left}.c18{border-spacing:0;border-collapse:collapse;margin-right:auto}.c19{background-color:#ffffff;max-width:720pt;padding:72pt 36pt 72pt 36pt}.c16{height:11pt}.c11{height:0pt}.title{padding-top:0pt;color:#000000;font-size:26pt;padding-bottom:3pt;font-family:"Arial";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}.subtitle{padding-top:0pt;color:#666666;font-size:15pt;padding-bottom:16pt;font-family:"Arial";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}li{color:#000000;font-size:11pt;font-family:"Arial"}p{margin:0;color:#000000;font-size:11pt;font-family:"Arial"}h1{padding-top:20pt;color:#000000;font-size:20pt;padding-bottom:6pt;font-family:"Arial";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}h2{padding-top:18pt;color:#000000;font-size:16pt;padding-bottom:6pt;font-family:"Arial";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}h3{padding-top:16pt;color:#434343;font-size:14pt;padding-bottom:4pt;font-family:"Arial";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}h4{padding-top:14pt;color:#666666;font-size:12pt;padding-bottom:4pt;font-family:"Arial";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}h5{padding-top:12pt;color:#666666;font-size:11pt;padding-bottom:4pt;font-family:"Arial";line-height:1.15;page-break-after:avoid;orphans:2;widows:2;text-align:left}h6{padding-top:12pt;color:#666666;font-size:11pt;padding-bottom:4pt;font-family:"Arial";line-height:1.15;page-break-after:avoid;font-style:italic;orphans:2;widows:2;text-align:left}</style></head><body class="c19"><div><p class="c15"><span class="c1"></span></p></div><p class="c6"><span class="c0">How does viscosity affect the transit time of a marble?</span></p><p class="c6 c16"><span class="c0"></span></p><a id="t.1aefd6b4c4507985322951e71ac3073ab7951e77"></a><a id="t.0"></a><table class="c18"><tbody><tr class="c11"><td class="c8" colspan="1" rowspan="1"><p class="c5"><span class="c9">Item</span></p></td><td class="c13" colspan="1" rowspan="1"><p class="c5"><span class="c9">Time Trial #1</span></p></td><td class="c10" colspan="1" rowspan="1"><p class="c5"><span class="c9">Time Trial #2</span></p></td><td class="c12" colspan="1" rowspan="1"><p class="c5"><span class="c9">Time Trial #3</span></p></td><td class="c4" colspan="1" rowspan="1"><p class="c5"><span class="c9">Time Trial #4</span></p></td><td class="c7" colspan="1" rowspan="1"><p class="c5"><span class="c9">Average Time</span></p><p class="c5"><span class="c2">(min:sec.mil)</span></p></td><td class="c14" colspan="1" rowspan="1"><p class="c5"><span class="c9">Observations</span></p></td></tr><tr class="c11"><td class="c8" colspan="1" rowspan="1"><p class="c5"><span class="c2">Control</span></p></td><td class="c13" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:01.71</span></p></td><td class="c10" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:01.19</span></p></td><td class="c12" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:01.49</span></p></td><td class="c4" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:01.26</span></p></td><td class="c7" colspan="1" rowspan="1"><p class="c5"><span class="c3">0:01.41 </span></p></td><td class="c14" colspan="1" rowspan="1"><p class="c5"><span class="c1">Was really fast</span></p></td></tr><tr class="c11"><td class="c8" colspan="1" rowspan="1"><p class="c5"><span class="c2">Syrup</span></p></td><td class="c13" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:51.77</span></p></td><td class="c10" colspan="1" rowspan="1"><p class="c17"><span class="c1"> 1:44.81</span></p></td><td class="c12" colspan="1" rowspan="1"><p class="c5"><span class="c1">2:59.00</span></p></td><td class="c4" colspan="1" rowspan="1"><p class="c5"><span class="c1">4:45.42</span></p></td><td class="c7" colspan="1" rowspan="1"><p class="c5"><span class="c3">2:35.25</span></p></td><td class="c14" colspan="1" rowspan="1"><p class="c5"><span class="c1">Stopped in pool at bottom</span></p></td></tr><tr class="c11"><td class="c8" colspan="1" rowspan="1"><p class="c5"><span class="c2">Honey</span></p></td><td class="c13" colspan="1" rowspan="1"><p class="c5"><span class="c1">9:00.00</span></p></td><td class="c10" colspan="1" rowspan="1"><p class="c5"><span class="c1">7:36.00</span></p></td><td class="c12" colspan="1" rowspan="1"><p class="c5"><span class="c1">6:48.00</span></p></td><td class="c4" colspan="1" rowspan="1"><p class="c5"><span class="c1">10:00.00+</span></p></td><td class="c7" colspan="1" rowspan="1"><p class="c5"><span class="c3">8:35.00</span></p></td><td class="c14" colspan="1" rowspan="1"><p class="c5"><span class="c1">Stopped halfway down</span></p></td></tr><tr class="c11"><td class="c8" colspan="1" rowspan="1"><p class="c5"><span class="c2">Water</span></p></td><td class="c13" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:01.65</span></p></td><td class="c10" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:02.35</span></p></td><td class="c12" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:01.31</span></p></td><td class="c4" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:02.09</span></p></td><td class="c7" colspan="1" rowspan="1"><p class="c5"><span class="c3">0:01.85</span></p></td><td class="c14" colspan="1" rowspan="1"><p class="c5"><span class="c1">Around as fast as control</span></p></td></tr><tr class="c11"><td class="c8" colspan="1" rowspan="1"><p class="c5"><span class="c2">Oil</span></p></td><td class="c13" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:02.02</span></p></td><td class="c10" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:02.18</span></p></td><td class="c12" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:03.39</span></p></td><td class="c4" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:02.36</span></p></td><td class="c7" colspan="1" rowspan="1"><p class="c5"><span class="c3">0:02.49</span></p></td><td class="c14" colspan="1" rowspan="1"><p class="c5"><span class="c1">Slows in pool</span></p></td></tr><tr class="c11"><td class="c8" colspan="1" rowspan="1"><p class="c5"><span class="c2">Glue</span></p></td><td class="c13" colspan="1" rowspan="1"><p class="c5"><span class="c1">1:40.85</span></p></td><td class="c10" colspan="1" rowspan="1"><p class="c5"><span class="c1">2:23.10</span></p></td><td class="c12" colspan="1" rowspan="1"><p class="c5"><span class="c1">1:53.45</span></p></td><td class="c4" colspan="1" rowspan="1"><p class="c5"><span class="c1">1:13.03</span></p></td><td class="c7" colspan="1" rowspan="1"><p class="c5"><span class="c3">1:47.61</span></p></td><td class="c14" colspan="1" rowspan="1"><p class="c5"><span class="c1">Stopped in pool</span></p></td></tr><tr class="c11"><td class="c8" colspan="1" rowspan="1"><p class="c5"><span class="c2">Soda</span></p></td><td class="c13" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:01.78</span></p></td><td class="c10" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:01.77</span></p></td><td class="c12" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:01.44</span></p></td><td class="c4" colspan="1" rowspan="1"><p class="c5"><span class="c1">0:01.72</span></p></td><td class="c7" colspan="1" rowspan="1"><p class="c5"><span class="c3">0:01.68</span></p></td><td class="c14" colspan="1" rowspan="1"><p class="c5"><span class="c1">Exactly like the water test </span></p></td></tr></tbody></table><p class="c6 c16"><span class="c1"></span></p></body></html> <p>
<h1> Conclusion </h1> <p> Soda, 1st place <p> Water, 2nd place <p> Oil, 3rd place <p> Glue, 4rth place <p> Syrup, 5th place <p> Honey, 6th <p> <p> The more viscous the liquid is, the slower the marble goes.
Also see: Tab Triggers