Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

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.

+ add another resource

Packages

Add Packages

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.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!-- Read the full post on <map> and <area> at https://jen4web.substack.com/p/map
Photo by Taha Samet Arslan from Pexels: 
https://www.pexels.com/photo/food-plate-dinner-lunch-7624679/  
-->

<h1>Today's example from Substack</h1>

<img src="https://assets.codepen.io/296057/30days-food.jpg" alt="Image of four dinner dishes sitting on a table with plates, knives, and forks." usemap="#map">

<map name="map" id="map">
    <area alt="Link to recipe for chicken cashew stir-fry." 
          target="_blank"
          href="https://www.allrecipes.com/" 
          coords="228,492,367,498,426,588,298, 697,166,688,100,614,128,548" 
          shape="poly">

    <area alt="Example to show link going elsewhere on this website" 
         href="nextpage.html" 
         coords="531,301,727,525" 
         shape="rect">

    <area target="_blank" 
          alt="Visit Ikea.com to buy these plates." 
          href="https://www.ikea.com/us/en/p/flitighet-plate-white-10346652/" 
          coords="990,723,261" 
          shape="circle">
</map>
              
            
!

CSS

              
                body {
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
}

              
            
!

JS

              
                /* 

💯 This challenge is certified 100% free of JavaScript. 

ALL THE GOOD STUFF IS IN THE HTML BLOCK :-D

*/
              
            
!
999px

Console