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.
<div class="tw-flex tw-flex-col tw-w-full tw-mb-6 lg:tw-w-1/3 lg:tw-mb-0 lg:tw-mr-5 moving-from">
<label for="moving-from" class="tw-block tw-mb-2 label-moving-from">Moving from:</label>
<select id="moving-from" name="fromPlaceId" required="required">
<option selected="selected" disabled value="">Select City</option>
<option value="13">AK - Anchorage</option>
<option value="14">AK - Fairbanks</option>
<option value="15">AK - Juneau</option>
<option value="16">AK - Kodiak</option>
<option value="3">AL - Anniston-Calhoun County</option>
<option value="4">AL - Auburn-Opelika</option>
<option value="5">AL - Birmingham</option>
<option value="6">AL - Decatur-Hartselle</option>
<option value="7">AL - Dothan</option>
<option value="8">AL - Florence</option>
<option value="9">AL - Huntsville</option>
<option value="10">AL - Mobile</option>
<option value="11">AL - Montgomery</option>
<option value="12">AL - Tuscaloosa</option>
<option value="526">AR - Bentonville</option>
<option value="28">AR - Conway</option>
<option value="24">AR - Fayetteville</option>
<option value="26">AR - Hot Springs</option>
<option value="27">AR - Jonesboro</option>
<option value="29">AR - Little Rock-N Little Rock</option>
<option value="444">AZ - Bullhead City</option>
<option value="17">AZ - Flagstaff</option>
<option value="18">AZ - Lake Havasu City</option>
<option value="19">AZ - Phoenix</option>
<option value="20">AZ - Prescott-Prescott Valley</option>
<option value="445">AZ - Scottsdale</option>
<option value="21">AZ - Sierra Vista</option>
<option value="522">AZ - Surprise</option>
<option value="22">AZ - Tucson</option>
<option value="23">AZ - Yuma</option>
<option value="30">CA - Bakersfield</option>
<option value="31">CA - Fresno</option>
<option value="32">CA - Los Angeles-Long Beach</option>
<option value="497">CA - Modesto</option>
<option value="33">CA - Oakland</option>
<option value="42">CA - Orange County</option>
<option value="34">CA - Palm Springs</option>
<option value="35">CA - Riverside City</option>
<option value="37">CA - Sacramento</option>
<option value="38">CA - San Diego</option>
<option value="39">CA - San Francisco</option>
<option value="40">CA - San Jose</option>
<option value="482">CA - Stockton</option>
<option value="511">CA - Sunnyvale</option>
<option value="483">CA - Tracy</option>
<option value="383">CA - Truckee-Nevada County</option>
<option value="43">CO - Colorado Springs</option>
<option value="44">CO - Denver</option>
<option value="50">CO - Glenwood Springs</option>
<option value="47">CO - Grand Junction</option>
<option value="51">CO - Gunnison</option>
<option value="49">CO - Pueblo</option>
<option value="523">CO - Westminster</option>
<option value="53">CT - Hartford</option>
<option value="54">CT - New Haven</option>
<option value="52">CT - Stamford</option>
<option value="59">DC-VA - Washington-Arlington-Alexandria</option>
<option value="56">DE - Dover</option>
<option value="524">DE - Sussex County</option>
<option value="58">DE - Wilmington</option>
<option value="70">FL - Bradenton</option>
<option value="60">FL - Cape Coral-Fort Myers</option>
<option value="437">FL - Daytona Beach</option>
<option value="61">FL - Fort Lauderdale</option>
<option value="63">FL - Gainesville</option>
<option value="64">FL - Jacksonville</option>
<option value="65">FL - Miami-Dade County</option>
<option value="66">FL - Orlando</option>
<option value="403">FL - Palm Coast-Flagler County</option>
<option value="502">FL - Pensacola</option>
<option value="427">FL - Punta Gorda-Charlotte Co</option>
<option value="71">FL - Sarasota</option>
<option value="467">FL - Tallahassee</option>
<option value="73">FL - Tampa</option>
<option value="74">FL - Vero Beach-Indian River</option>
<option value="76">GA - Albany</option>
<option value="78">GA - Atlanta</option>
<option value="498">GA - Columbus</option>
<option value="446">GA - Dalton</option>
<option value="473">GA - Dublin-Laurens County</option>
<option value="461">GA - Fayetteville-Fayette County</option>
<option value="515">GA - LaGrange-Troup County</option>
<option value="79">GA - Marietta</option>
<option value="84">GA - Savannah</option>
<option value="488">GA - Statesboro-Bulloch County</option>
<option value="86">GA - Valdosta</option>
<option value="80">GA-SC - Augusta-Aiken</option>
<option value="468">HI - Hilo</option>
<option value="88">HI - Honolulu</option>
<option value="111">IA - Ames</option>
<option value="112">IA - Burlington</option>
<option value="113">IA - Cedar Rapids</option>
<option value="115">IA - Des Moines</option>
<option value="116">IA - Dubuque</option>
<option value="378">IA - Iowa City</option>
<option value="117">IA - Mason City</option>
<option value="554">IA - Sioux City</option>
<option value="118">IA - Waterloo-Cedar Falls</option>
<option value="114">IA-IL - Davenport-Moline-Rock Is</option>
<option value="89">ID - Boise</option>
<option value="90">ID - Idaho Falls</option>
<option value="91">ID - Twin Falls</option>
<option value="439">IL - Carbondale</option>
<option value="93">IL - Champaign-Urbana</option>
<option value="94">IL - Chicago</option>
<option value="96">IL - Danville</option>
<option value="97">IL - Decatur</option>
<option value="98">IL - Galesburg</option>
<option value="95">IL - Joliet-Will County</option>
<option value="447">IL - Kankakee</option>
<option value="99">IL - Peoria</option>
<option value="100">IL - Quincy</option>
<option value="349">IL - Rockford</option>
<option value="101">IL - Springfield</option>
<option value="455">IN - Bloomington</option>
<option value="396">IN - Elkhart-Goshen</option>
<option value="103">IN - Evansville</option>
<option value="104">IN - Fort Wayne-Allen County</option>
<option value="106">IN - Indianapolis</option>
<option value="448">IN - Indianapolis-Morgan County</option>
<option value="532">IN - Kokomo</option>
<option value="107">IN - Lafayette</option>
<option value="108">IN - Muncie</option>
<option value="400">IN - Richmond</option>
<option value="109">IN - South Bend</option>
<option value="495">IN - Terre Haute</option>
<option value="119">KS - Dodge City</option>
<option value="122">KS - Hutchinson</option>
<option value="124">KS - Manhattan</option>
<option value="489">KS - Pittsburg</option>
<option value="125">KS - Salina</option>
<option value="126">KS - Topeka</option>
<option value="127">KS - Wichita</option>
<option value="469">KY - Ashland</option>
<option value="128">KY - Bowling Green</option>
<option value="129">KY - Covington</option>
<option value="131">KY - Lexington</option>
<option value="132">KY - Louisville</option>
<option value="133">KY - Paducah</option>
<option value="353">LA - Alexandria</option>
<option value="134">LA - Baton Rouge</option>
<option value="397">LA - Hammond</option>
<option value="414">LA - Houma-Terrebonne Parish</option>
<option value="135">LA - Lafayette</option>
<option value="136">LA - Lake Charles</option>
<option value="354">LA - Monroe</option>
<option value="470">LA - New Orleans</option>
<option value="138">LA - Shreveport-Bossier City</option>
<option value="137">LA - Slidell - St Tammany Parish</option>
<option value="493">LA - Thibodaux-Lafourche Parish</option>
<option value="143">MA - Boston</option>
<option value="146">MA - Fitchburg-Leominster</option>
<option value="144">MA - Framingham-Natick</option>
<option value="145">MA - Pittsfield-Berkshire County</option>
<option value="141">MD - Baltimore</option>
<option value="142">MD - Bethesda-Gaithersburg-Frederick</option>
<option value="484">MD - Charles County</option>
<option value="140">ME - Portland</option>
<option value="434">MI - Ann Arbor</option>
<option value="485">MI - Benton Harbor</option>
<option value="147">MI - Detroit</option>
<option value="148">MI - Grand Rapids</option>
<option value="150">MI - Kalamazoo</option>
<option value="507">MI - Lansing</option>
<option value="512">MI - Troy</option>
<option value="386">MN - Mankato</option>
<option value="356">MN - Minneapolis</option>
<option value="151">MN - Rochester</option>
<option value="152">MN - St. Cloud</option>
<option value="364">MN - St. Paul</option>
<option value="158">MO - Columbia</option>
<option value="159">MO - Jefferson City</option>
<option value="160">MO - Joplin</option>
<option value="164">MO - Springfield</option>
<option value="162">MO - St. Joseph</option>
<option value="163">MO-IL - St. Louis</option>
<option value="161">MO-KS - Kansas City</option>
<option value="513">MS - Gulfport-Biloxi</option>
<option value="154">MS - Hattiesburg</option>
<option value="155">MS - Jackson</option>
<option value="533">MS - Meridian</option>
<option value="157">MS - Tupelo</option>
<option value="166">MT - Bozeman</option>
<option value="167">MT - Kalispell</option>
<option value="168">MT - Missoula</option>
<option value="190">NC - Asheville</option>
<option value="191">NC - Burlington</option>
<option value="194">NC - Chapel Hill</option>
<option value="192">NC - Charlotte</option>
<option value="200">NC - Dare County</option>
<option value="195">NC - Durham</option>
<option value="352">NC - Fayetteville</option>
<option value="197">NC - Greenville</option>
<option value="198">NC - Hickory</option>
<option value="357">NC - Jacksonville</option>
<option value="202">NC - Lexington-Thomasville</option>
<option value="207">NC - Marion-McDowell County</option>
<option value="203">NC - Raleigh</option>
<option value="535">NC - Salisbury</option>
<option value="205">NC - Wilmington</option>
<option value="206">NC - Winston-Salem</option>
<option value="208">ND - Bismarck-Mandan</option>
<option value="514">ND - Grand Forks</option>
<option value="211">ND - Minot</option>
<option value="209">ND-MN - Fargo-Moorhead</option>
<option value="169">NE - Hastings</option>
<option value="404">NE - Lincoln</option>
<option value="170">NE - Omaha</option>
<option value="350">NH - Manchester</option>
<option value="175">NJ - Bergen-Passaic</option>
<option value="173">NJ - Middlesex-Monmouth</option>
<option value="534">NJ - Morristown</option>
<option value="174">NJ - Newark-Elizabeth</option>
<option value="503">NM - Albuquerque</option>
<option value="351">NM - Carlsbad</option>
<option value="179">NM - Las Cruces</option>
<option value="180">NM - Los Alamos</option>
<option value="177">NM - Rio Rancho</option>
<option value="171">NV - Las Vegas</option>
<option value="172">NV - Reno-Sparks</option>
<option value="373">NY - Albany</option>
<option value="181">NY - Buffalo</option>
<option value="474">NY - Dutchess County</option>
<option value="183">NY - Ithaca</option>
<option value="184">NY - Nassau County</option>
<option value="389">NY - New York (Brooklyn)</option>
<option value="185">NY - New York (Manhattan)</option>
<option value="186">NY - New York (Queens)</option>
<option value="188">NY - Rochester</option>
<option value="189">NY - Syracuse</option>
<option value="456">NY - Utica-Rome</option>
<option value="212">OH - Akron</option>
<option value="213">OH - Ashland</option>
<option value="214">OH - Cincinnati</option>
<option value="215">OH - Cleveland</option>
<option value="216">OH - Columbus</option>
<option value="217">OH - Dayton</option>
<option value="218">OH - Findlay</option>
<option value="219">OH - Lima</option>
<option value="358">OH - Wayne County</option>
<option value="429">OH - Wooster</option>
<option value="222">OH - Youngstown-Warren</option>
<option value="223">OK - Ardmore</option>
<option value="228">OK - Edmond</option>
<option value="224">OK - Enid</option>
<option value="225">OK - Lawton</option>
<option value="471">OK - McAlester</option>
<option value="227">OK - Muskogee</option>
<option value="229">OK - Norman</option>
<option value="230">OK - Oklahoma City</option>
<option value="231">OK - Ponca City</option>
<option value="235">OK - Pryor Creek</option>
<option value="232">OK - Stillwater</option>
<option value="234">OK - Tulsa</option>
<option value="405">OR - Klamath Falls</option>
<option value="239">OR - Portland</option>
<option value="440">PA - Allentown</option>
<option value="241">PA - Erie</option>
<option value="402">PA - Harrisburg</option>
<option value="242">PA - Indiana County</option>
<option value="243">PA - Johnstown</option>
<option value="245">PA - Philadelphia</option>
<option value="246">PA - Pittsburgh</option>
<option value="528">PA - Reading</option>
<option value="499">PA - Scranton</option>
<option value="500">PA - Wilkes-Barre</option>
<option value="247">PA - Williamsport-Lycoming Co</option>
<option value="248">PA - York County</option>
<option value="492">PR - San Juan</option>
<option value="249">RI - Providence</option>
<option value="250">SC - Anderson</option>
<option value="381">SC - Beaufort</option>
<option value="252">SC - Camden</option>
<option value="251">SC - Charleston-N Charleston</option>
<option value="253">SC - Columbia</option>
<option value="255">SC - Greenville</option>
<option value="256">SC - Hilton Head Island</option>
<option value="258">SC - Myrtle Beach</option>
<option value="457">SC - Spartanburg</option>
<option value="260">SC - Sumter</option>
<option value="409">SD - Pierre</option>
<option value="410">SD - Rapid City</option>
<option value="261">SD - Sioux Falls</option>
<option value="263">TN - Chattanooga</option>
<option value="360">TN - Clarksville</option>
<option value="264">TN - Cleveland</option>
<option value="496">TN - Columbia-Maury County</option>
<option value="265">TN - Cookeville</option>
<option value="266">TN - Dyersburg</option>
<option value="267">TN - Jackson-Madison County</option>
<option value="268">TN - Johnson City</option>
<option value="270">TN - Knoxville</option>
<option value="271">TN - Memphis</option>
<option value="272">TN - Morristown</option>
<option value="274">TN - Murfreesboro-Smyrna</option>
<option value="275">TN - Nashville-Franklin</option>
<option value="490">TX - Abilene</option>
<option value="501">TX - Allen</option>
<option value="277">TX - Amarillo</option>
<option value="407">TX - Athens/Henderson County</option>
<option value="278">TX - Austin</option>
<option value="281">TX - Beaumont</option>
<option value="398">TX - Brazoria County</option>
<option value="282">TX - Brownsville</option>
<option value="555">TX - Cedar Park</option>
<option value="292">TX - Conroe</option>
<option value="284">TX - Corpus Christi</option>
<option value="285">TX - Dallas</option>
<option value="406">TX - Denton</option>
<option value="288">TX - El Paso</option>
<option value="290">TX - Fort Worth</option>
<option value="283">TX - Harlingen</option>
<option value="293">TX - Houston</option>
<option value="486">TX - Longview</option>
<option value="297">TX - Lubbock</option>
<option value="298">TX - Lufkin</option>
<option value="299">TX - McAllen</option>
<option value="300">TX - Midland</option>
<option value="391">TX - Nacogdoches</option>
<option value="301">TX - Odessa</option>
<option value="382">TX - Paris</option>
<option value="286">TX - Plano</option>
<option value="279">TX - Round Rock</option>
<option value="304">TX - San Angelo</option>
<option value="305">TX - San Antonio</option>
<option value="280">TX - San Marcos</option>
<option value="365">TX - Seguin</option>
<option value="430">TX - Sherman-Denison</option>
<option value="294">TX - Temple</option>
<option value="308">TX - Tyler</option>
<option value="310">TX - Waco</option>
<option value="291">TX - Weatherford</option>
<option value="366">TX - Wichita Falls</option>
<option value="307">TX-AR - Texarkana</option>
<option value="1">USA - USA AVERAGE</option>
<option value="311">UT - Cedar City</option>
<option value="436">UT - Ogden</option>
<option value="442">UT - Provo-Orem</option>
<option value="314">UT - Salt Lake City</option>
<option value="313">UT - St. George</option>
<option value="508">VA - Alexandria</option>
<option value="509">VA - Arlington</option>
<option value="367">VA - Blacksburg</option>
<option value="316">VA - Charlottesville</option>
<option value="408">VA - Danville City</option>
<option value="322">VA - Hampton Roads-SE Virginia</option>
<option value="317">VA - Harrisonburg-Rockingham</option>
<option value="324">VA - Lexington-Buena Vista-Rockbridge</option>
<option value="368">VA - Lynchburg</option>
<option value="318">VA - Martinsville-Henry County</option>
<option value="319">VA - Richmond</option>
<option value="320">VA - Roanoke</option>
<option value="321">VA - Staunton-Waynesboro-Augusta</option>
<option value="361">VA-WV - Winchester</option>
<option value="315">VT - Burlington-Chittenden Co</option>
<option value="325">WA - Bellingham</option>
<option value="392">WA - Everett</option>
<option value="443">WA - Moses Lake</option>
<option value="494">WA - Mount Vernon-Skagit County</option>
<option value="327">WA - Olympia</option>
<option value="326">WA - Richland-Kennewick-Pasco</option>
<option value="329">WA - Seattle</option>
<option value="330">WA - Spokane</option>
<option value="331">WA - Tacoma</option>
<option value="328">WA - Vancouver</option>
<option value="525">WA - Wenatchee</option>
<option value="362">WA - Yakima</option>
<option value="337">WI - Eau Claire</option>
<option value="491">WI - Fond du Lac</option>
<option value="338">WI - Green Bay</option>
<option value="339">WI - Janesville</option>
<option value="416">WI - Madison</option>
<option value="344">WI - Marshfield</option>
<option value="340">WI - Milwaukee-Waukesha</option>
<option value="343">WI - Wausau</option>
<option value="375">WV - Clarksburg</option>
<option value="334">WV - Martinsburg-Berkeley County</option>
<option value="333">WV - Morgantown</option>
<option value="553">WY - Casper</option>
<option value="345">WY - Cheyenne</option>
<option value="347">WY - Laramie</option>
</select>
</div>
Also see: Tab Triggers