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 at https://jen4web.substack.com/p/map -->
 
<h1>Challenge for < map> and < area></h1>

<p>INSTRUCTIONS: Fork this CodePen and markup the content below.</p>
  
<p>Add an image map to allow the user to quickly identify these Game of Thrones characters: 
  <ul>
    <li><a href="https://gameofthrones.fandom.com/wiki/Jon_Snow" target="_blank">Jon Snow</a></li> 
    <li><a href="https://gameofthrones.fandom.com/wiki/Arya_Stark" target="_blank">Arya Stark</a></li>       <li><a href="https://gameofthrones.fandom.com/wiki/Sansa_Stark" target="_blank">Sansa Stark</a></li>       <li><a href="https://time.com/5932101/bernie-memes-mittens/" target="_blank">Bernie Sanders</a></li>
  </ul>
  <p>TIP: Load the image into the <a href="https://www.image-map.net/" target="_blank">image map generator</a> using the "Load Image from Website" button and the URL for the image below.</p>
  <p>MAKE IT RESPONSIVE: This is #30DaysofHTML, so we do not require that you use JavaScript to make this image map responsive. However, if you wish to do so, <a href="https://stackoverflow.com/questions/13321067/dynamically-resizing-image-maps-and-images/13322059" target="_blank">investigate StackOverflow</a> for possible solutions.</p> 

<p><a href="https://jen4web.substack.com/p/map-discussion" target="_blank" class="button">Share your answer on Substack</a></p>
<hr> <!-- hr: a thematic break in a section. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hr -->

<img src="https://static.lavenir.net/Assets/Images_Upload/Actu24/2021/01/22/01fa82ba-5caa-11eb-9580-ba183af4955c_web__scale_0.6274194_0.6274193.jpg" alt="Three notable characters from Game of Thrones, plus a surprise guest.">
              
            
!

CSS

              
                /* default styling - you don't need to touch this unless you really want to */
body {
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
}
.button {
  background-color: #eb3b5a;
  padding: 0.5rem 1rem;
  border: 1px solid #eb3b5a;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 5rem;
}
.button:hover {
  color: #eb3b5a;
  background-color: white;
}
img {
  max-width: 100%;
}
              
            
!

JS

              
                /* 

💯 This challenge is certified 100% free of JavaScript. 

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

*/
              
            
!
999px

Console