Pen Settings



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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.



Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO


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.


Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.


Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO


                <div mv-bar="none" mv-app mv-source="shapir" mv-source-service="wikidata" mv-source-id="[item]">

  <form class="search" mv-action="clear(parentOrganization, subsidiary, productOrMaterialProduced), set(item, selectedItem)">
    <input type="search" property="selectedItem" list="item-suggestions" placeholder="Search with company id">
    <meta property="item" mv-default="Q95">

  <datalist id="item-suggestions">
    <option value="Q95">Google
    <option value="Q2283">Microsoft
    <option value="Q312">Apple
    <option value="Q3884">Amazon
    <option value="Q380">Meta (Facebook)
    <option value="Q689141">Spotify

      <img property="image" />

      <div class="info">
        <img property="logoImage" class="logo" />
        <h1 property="label"></h1>
        <!-- Task#1: Display the description-->

      <!-- Task#2: Display the inception or the date of establishment-->

      <dt>Official Blog:</dt>
      <dd><a property="officialBlog" target="_blank">[officialBlog]</a></dd>

      <dt>Formed in</dt>
        <span property="locationOfFormation" mv-multiple>
          <span property="label"></span>

      <div mv-if="count(productOrMaterialProduced.label) > 0">
          <span property="productOrMaterialProduced" mv-multiple>
            <span property="label"></span>

      <!-- Task#3: Display the industries in which the company is part of-->

      <!-- Task#4: Display the labels and images of the co-founders of the company -->


    <section id="corporate-structure" mv-if="parentOrganization.label or count(subsidiary.label) > 0">
      <h2>Corporate Structure</h2>

        <div mv-if="parentOrganization.label">
          <dt>Parent organization</dt>
          <dd property="parentOrganization">
            <span property="label"></span>
            <!--  Task#5: Display the total equity -->

          <dt>This company</dt>

        <div mv-if="count(subsidiary.label) > 0">
          <dt>[pluralize(count(subsidiary.label), 'subsidiary', 'subsidiaries')]</dt>
            <span property="subsidiary" mv-multiple>
              <span property="label"></span>


  <!-- Task#6 Change the app to display a list of 5 companies that are part of Big Tech in the United States of America -->



                * {
  margin: 0;
  padding: 0;

body {
  padding: 1em;
  font: 100%/1.5 system-ui, Helvetica Neue, sans-serif;
  background: hsl(220 10% 96%);

h6 {
  line-height: 1;

select {
  font: inherit;

button {
  padding: 0em 0.3em;

a {
  mix-blend-mode: multiply;

a:not(:hover, :focus) {
  text-decoration: none;
  color: inherit;

main {
  position: relative;
  display: grid;
    "head head"
    "misc corp";
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-items: start;
  max-width: 1200px;
  margin: auto;
  background: white;
  padding: 1em;
} {
  display: flex;
  gap: 0.2em;
  margin-bottom: 1em;
  font-size: 200%;
} input {
  flex: 1;

header {
  position: relative;
  grid-area: head;
  text-align: center;
  margin: -1em;
  margin-bottom: 3em;

header img[property="image"] {
  position: relative;
  display: block;
  width: 100%;
  height: 30em;
  margin-bottom: 2em;
  object-fit: cover;

header .info {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -2em;
  max-width: 20em;
  padding: 1.5em 2em;
  border-radius: 0.5em;
  background: white;
  box-shadow: 0 -0.2em 0.5em rgb(0 0 0 / 0.5);
  clip-path: polygon(
    -1em -1em,
    calc(100% + 1em) -1em,
    calc(100% + 1em) calc(100% - 8em),
    calc(100% - 1em) 100%,
    1em 100%,
    -1em calc(100% - 8em)

.logo {
  display: block;
  max-width: 100%;

h1[property="label"] {
  margin-top: 0.3rem;

[property="description"] {
  font-style: italic;
  margin-top: 0.3rem;

dt {
  text-transform: uppercase;
  color: hsl(220 10% 50%);
  font-size: 80%;
  font-weight: bold;
  margin-top: 1rem;

dd span[mv-multiple]:not(:last-of-type)::after {
  content: ", ";

dd[mv-multiple] span + span {

#corporate-structure {
  background: hsl(220 10% 95%);
  padding: 1em;
  max-width: 40em;
  border-radius: 0.2em;
  --parts-background: hsl(220 10% 85%);

#corporate-structure dl {
  /* Draw line */
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 1em;
  background: linear-gradient(var(--parts-background), var(--parts-background))
    center / 0.5em 100% no-repeat;

#corporate-structure div {
  background: var(--parts-background);
  border-radius: 0.3em;
  padding: 1em;

#corporate-structure div dt {
  margin-top: 0;



A Pen is worth a thousand docs.