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 esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM 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.
<form method="post" enctype="multipart/form-data" id="gform_4" action="/health-hub/modules/cultural-humility/privilege-exercise/">
<div class="gform_body">
<ul id="gform_fields_4" class="gform_fields top_label form_sublabel_below description_below">
<li id="field_4_3" class="gfield field_sublabel_below field_description_below gfield_visibility_visible"><label class="gfield_label">Where do you think you fall on the scale of privilege?</label>
<div class="ginput_container ginput_container_radio">
<ul class="gfield_radio" id="input_4_3">
<li class="gchoice_4_3_0"><input name="input_3" type="radio" value="-10" id="choice_4_3_0"><label for="choice_4_3_0" id="label_4_3_0">-10</label></li>
<li class="gchoice_4_3_1"><input name="input_3" type="radio" value="-9" id="choice_4_3_1"><label for="choice_4_3_1" id="label_4_3_1">-9</label></li>
<li class="gchoice_4_3_2"><input name="input_3" type="radio" value="-8" id="choice_4_3_2"><label for="choice_4_3_2" id="label_4_3_2">-8</label></li>
<li class="gchoice_4_3_3"><input name="input_3" type="radio" value="-7" id="choice_4_3_3"><label for="choice_4_3_3" id="label_4_3_3">-7</label></li>
<li class="gchoice_4_3_4"><input name="input_3" type="radio" value="-6" id="choice_4_3_4"><label for="choice_4_3_4" id="label_4_3_4">-6</label></li>
<li class="gchoice_4_3_5"><input name="input_3" type="radio" value="-5" id="choice_4_3_5"><label for="choice_4_3_5" id="label_4_3_5">-5</label></li>
<li class="gchoice_4_3_6"><input name="input_3" type="radio" value="-4" id="choice_4_3_6"><label for="choice_4_3_6" id="label_4_3_6">-4</label></li>
<li class="gchoice_4_3_7"><input name="input_3" type="radio" value="-3" id="choice_4_3_7"><label for="choice_4_3_7" id="label_4_3_7">-3</label></li>
<li class="gchoice_4_3_8"><input name="input_3" type="radio" value="-2" id="choice_4_3_8"><label for="choice_4_3_8" id="label_4_3_8">-2</label></li>
<li class="gchoice_4_3_9"><input name="input_3" type="radio" value="-1" id="choice_4_3_9"><label for="choice_4_3_9" id="label_4_3_9">-1</label></li>
<li class="gchoice_4_3_10"><input name="input_3" type="radio" value="0" id="choice_4_3_10"><label for="choice_4_3_10" id="label_4_3_10">0</label></li>
<li class="gchoice_4_3_11"><input name="input_3" type="radio" value="1" id="choice_4_3_11"><label for="choice_4_3_11" id="label_4_3_11">1</label></li>
<li class="gchoice_4_3_12"><input name="input_3" type="radio" value="2" id="choice_4_3_12"><label for="choice_4_3_12" id="label_4_3_12">2</label></li>
<li class="gchoice_4_3_13"><input name="input_3" type="radio" value="3" id="choice_4_3_13"><label for="choice_4_3_13" id="label_4_3_13">3</label></li>
<li class="gchoice_4_3_14"><input name="input_3" type="radio" value="4" id="choice_4_3_14"><label for="choice_4_3_14" id="label_4_3_14">4</label></li>
<li class="gchoice_4_3_15"><input name="input_3" type="radio" value="5" id="choice_4_3_15"><label for="choice_4_3_15" id="label_4_3_15">5</label></li>
<li class="gchoice_4_3_16"><input name="input_3" type="radio" value="6" id="choice_4_3_16"><label for="choice_4_3_16" id="label_4_3_16">6</label></li>
<li class="gchoice_4_3_17"><input name="input_3" type="radio" value="7" id="choice_4_3_17"><label for="choice_4_3_17" id="label_4_3_17">7</label></li>
<li class="gchoice_4_3_18"><input name="input_3" type="radio" value="8" id="choice_4_3_18"><label for="choice_4_3_18" id="label_4_3_18">8</label></li>
<li class="gchoice_4_3_19"><input name="input_3" type="radio" value="9" id="choice_4_3_19"><label for="choice_4_3_19" id="label_4_3_19">9</label></li>
<li class="gchoice_4_3_20"><input name="input_3" type="radio" value="10" id="choice_4_3_20"><label for="choice_4_3_20" id="label_4_3_20">10</label></li>
</ul>
</div>
</li>
<li id="field_4_1" class="gfield field_sublabel_below field_description_below gfield_visibility_visible gsurvey-survey-field " style="display: none;"><label class="gfield_label">Untitled Survey Field</label>
<div class="ginput_container ginput_container_likert">
<table class="gsurvey-likert" id="input_4_1">
<thead>
<tr>
<th scope="col" class="gsurvey-likert-row-label"></th>
<th scope="col" class="gsurvey-likert-choice-label">Yes</th>
<th scope="col" class="gsurvey-likert-choice-label">No</th>
</tr>
</thead>
<tbody>
<tr>
<td data-label="" class="gsurvey-likert-row-label">My parents worked nights and weekends.</td>
<td data-label="Yes" class="gsurvey-likert-choice"><input name="input_1.1" type="radio" value="glikertrowea423492:glikertcol136aa84b3" id="choice_4_1_1_1" disabled=""></td>
<td data-label="No" class="gsurvey-likert-choice"><input name="input_1.1" type="radio" value="glikertrowea423492:glikertcol194fd576c" id="choice_4_1_1_2" disabled=""></td>
</tr>
<tr>
<td data-label="" class="gsurvey-likert-row-label">I some other things.</td>
<td data-label="Yes" class="gsurvey-likert-choice"><input name="input_1.2" type="radio" value="glikertrow86436039:glikertcol136aa84b3" id="choice_4_1_2_1" disabled=""></td>
<td data-label="No" class="gsurvey-likert-choice"><input name="input_1.2" type="radio" value="glikertrow86436039:glikertcol194fd576c" id="choice_4_1_2_2" disabled=""></td>
</tr>
<tr>
<td data-label="" class="gsurvey-likert-row-label">More statement.</td>
<td data-label="Yes" class="gsurvey-likert-choice"><input name="input_1.3" type="radio" value="glikertrow5f96b67a:glikertcol136aa84b3" id="choice_4_1_3_1" disabled=""></td>
<td data-label="No" class="gsurvey-likert-choice"><input name="input_1.3" type="radio" value="glikertrow5f96b67a:glikertcol194fd576c" id="choice_4_1_3_2" disabled=""></td>
</tr>
<tr>
<td data-label="" class="gsurvey-likert-row-label">There is more here.</td>
<td data-label="Yes" class="gsurvey-likert-choice"><input name="input_1.4" type="radio" value="glikertrowca460675:glikertcol136aa84b3" id="choice_4_1_4_1" disabled=""></td>
<td data-label="No" class="gsurvey-likert-choice"><input name="input_1.4" type="radio" value="glikertrowca460675:glikertcol194fd576c" id="choice_4_1_4_2" disabled=""></td>
</tr>
<tr>
<td data-label="" class="gsurvey-likert-row-label">Fifth row</td>
<td data-label="Yes" class="gsurvey-likert-choice"><input name="input_1.5" type="radio" value="glikertrowbdce6331:glikertcol136aa84b3" id="choice_4_1_5_1" disabled=""></td>
<td data-label="No" class="gsurvey-likert-choice"><input name="input_1.5" type="radio" value="glikertrowbdce6331:glikertcol194fd576c" id="choice_4_1_5_2" disabled=""></td>
</tr>
</tbody>
</table>
</div>
</li>
</ul>
</div>
<div class="gform_footer top_label"> <input type="submit" id="gform_submit_button_4" class="gform_button button" value="Submit" onclick="if(window["gf_submitting_4"]){return false;} window["gf_submitting_4"]=true; " onkeypress="if( event.keyCode == 13 ){ if(window["gf_submitting_4"]){return false;} window["gf_submitting_4"]=true; jQuery("#gform_4").trigger("submit",[true]); }">
<input type="hidden" class="gform_hidden" name="is_submit_4" value="1">
<input type="hidden" class="gform_hidden" name="gform_submit" value="4">
<input type="hidden" class="gform_hidden" name="gform_unique_id" value="">
<input type="hidden" class="gform_hidden" name="state_4" value="WyJbXSIsIjUzZDI1ZTdhZDhjYjNjMDYxMGM4NjA5YTg4MzViZmYxIl0=">
<input type="hidden" class="gform_hidden" name="gform_target_page_number_4" id="gform_target_page_number_4" value="0">
<input type="hidden" class="gform_hidden" name="gform_source_page_number_4" id="gform_source_page_number_4" value="1">
<input type="hidden" name="gform_field_values" value="">
</div>
</form>
#gform_4 ul.gfield_radio li {
display: inline-block;
width: 30px;
height: 30px;
border: 1px solid #979797;
margin: 10px 0;
text-align: center;
position: relative;
border-radius: 50%;
}
#gform_4 ul.gfield_radio li label{
display: block;
width: 30px;
height: 30px;
position: absolute;
left: 0;
top: 0;
line-height: 30px;
-webkit-transition: all .2s;
transition: all .2s;
margin: 0;
padding: 0;
max-width: 100%;
background-color: #fff;
border-radius: 50%;
}
#gform_4 .gform_wrapper ul.gfield_checkbox li label, .gform_wrapper ul.gfield_radio li label {
vertical-align: middle;
cursor: pointer;
}
#gform_4 ul.gfield_radio li label:active {
background-color: red
}
#gform_4 ul.gfield_radio input[type="radio"]:checked + label {
background-color:aqua;
display:block;
border: 2px solid;
margin-left:-2px;
margin-top: -2px;
}
Also see: Tab Triggers