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.
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 PROIf 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.
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.
Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.
PRO members can see and edit the Pen thumbnail here after the Pen has been saved.
<div mv-app="main" mv-bar="none" mv-source="shapir" mv-source-service="wikidata" mv-source-id="Q3286391" mv-source-language="en">
<section class="dDUGgO">
<section class="ipc-page-background ipc-page-background--baseAlt TitleMainHeroGroup__StyledPageBackground-w70azj-0 hEHQFC">
<div class="ipc-page-content-container ipc-page-content-container--center">
<!-- title-->
<div class="hglRHk">
<div class="jxsVNt">
<h1 class="dxSWFG" property="label"></h1>
<meta property="movieLabel" mv-default="[label]">
<div class="hWHMKr">
<ul class="dxizHm">
<li class="ipc-inline-list__item">[first(year(publicationDate))]</li> <span>R
.</span>
<li class="ipc-inline-list__item" property="duration"></li> <span>Min</span>
</ul>
</div>
</div>
</div>
<!-- rating -->
<div property="imdbMovie" mv-value="imdb.Movie([IMDbID])">
<div class="jQXoLQ">
<div class="bufoWn">IMDb RATING</div>
<div class="bmbYRW">
<span class="iTLWoV" property="contentRating"></span><span>/10</span>
</div>
</div>
<div class="jQXoLQ">
<div class="bufoWn">RATING COUNT</div>
<div class="bmbYRW">
<span class="iTLWoV" property="ratingCount"></span>
</div>
</div>
<div class="FKYGY">
<div class="evAOsN">
<div class="dGdktI">
<img property="image" />
</div>
<!-- <div class="hQJhqT" property="movieVideos" mv-value="youtube.search([movieLabel])"> -->
<div class="hQJhqT">
<iframe width="800" height="450" property="videoId" src="https://www.youtube.com/embed/nSbzyEJ8X9E" allowfullscreen>
</iframe>
</div>
</div>
</div>
</div>
<!-- info -->
<div class="kmTkgc">
<div class="eaUohq">
<div class="kNqsIK">
<div class="twqaW">
<div class="ipc-chip-list GenresAndPlot__GenresChipList-cum89p-4 gtBDBL" data-testid="genres" property="genre" mv-multiple hidden="[label = '']">
<a href="[itemURL]" property="itemURL" target="_blank" class="GenresAndPlot__GenreChip-cum89p-3 fzmeux ipc-chip ipc-chip--on-baseAlt">
<span class="ipc-chip__text" property="label"></span>
</a>
</div>
</div>
<div class="iGxbgr">
<ul class="ipc-metadata-list ipc-metadata-list--dividers-all title-pc-list ipc-metadata-list--baseAlt">
<li class="ipc-metadata-list__item">
<span class="ipc-metadata-list-item__label">Director</span>
<div class="ipc-metadata-list-item__content-container">
<ul class="ipc-inline-list ipc-inline-list--show-dividers ipc-inline-list--inline ipc-metadata-list-item__list-content baseAlt">
<li class="ipc-inline-list__item" property="director" mv-multiple>
<a class="ipc-metadata-list-item__list-content-item ipc-metadata-list-item__list-content-item--link" href="[itemURL]" property="itemURL" target="_blank">
<span property="label"></span>
</a>
</li>
</ul>
</div>
</li>
<li class="ipc-metadata-list__item">
<span class="ipc-metadata-list-item__label">Writers</span>
<div class="ipc-metadata-list-item__content-container">
<ul class="ipc-inline-list ipc-inline-list--show-dividers ipc-inline-list--inline ipc-metadata-list-item__list-content baseAlt">
<li class="ipc-inline-list__item" property="screenwriter" mv-multiple hidden="[itemURL = '']">
<meta property="label" />
<a class="ipc-metadata-list-item__list-content-item ipc-metadata-list-item__list-content-item--link" href="[itemURL]" property="itemURL" target="_blank">[label]</a>
</li>
</ul>
</div>
</li>
<li class="ipc-metadata-list__item ">
<span class="ipc-metadata-list-item__label">Director of Photography</span>
<div class="ipc-metadata-list-item__content-container">
<ul class="ipc-inline-list ipc-inline-list--show-dividers ipc-inline-list--inline ipc-metadata-list-item__list-content baseAlt">
<li class="ipc-inline-list__item" property="directorOfPhotography" mv-multiple>
<meta property="label" />
<a class="ipc-metadata-list-item__list-content-item ipc-metadata-list-item__list-content-item--link" href="[itemURL]" property="itemURL" target="_blank">[label]</a>
</li>
</ul>
</div>
</li>
<li class="ipc-metadata-list__item ">
<span class="ipc-metadata-list-item__label">Film Editor</span>
<div class="ipc-metadata-list-item__content-container">
<ul class="ipc-inline-list ipc-inline-list--show-dividers ipc-inline-list--inline ipc-metadata-list-item__list-content baseAlt">
<li class="ipc-inline-list__item" property="filmEditor" mv-multiple>
<meta property="label" />
<a class="ipc-metadata-list-item__list-content-item ipc-metadata-list-item__list-content-item--link" href="[itemURL]" property="itemURL" target="_blank">[label]</a>
</li>
</ul>
</div>
</li>
<li class="ipc-metadata-list__item">
<span class="ipc-metadata-list-item__label">Make-up Artist</span>
<div class="ipc-metadata-list-item__content-container">
<ul class="ipc-inline-list ipc-inline-list--show-dividers ipc-inline-list--inline ipc-metadata-list-item__list-content baseAlt">
<li class="ipc-inline-list__item" property="make-upArtist" mv-multiple>
<meta property="label" />
<a class="ipc-metadata-list-item__list-content-item ipc-metadata-list-item__list-content-item--link" href="[itemURL]" property="itemURL" target="_blank">[label]</a>
</li>
</ul>
</div>
</li>
<li class="ipc-metadata-list__item">
<span class="ipc-metadata-list-item__label">Producer</span>
<div class="ipc-metadata-list-item__content-container">
<ul class="ipc-inline-list ipc-inline-list--show-dividers ipc-inline-list--inline ipc-metadata-list-item__list-content baseAlt">
<li class="ipc-inline-list__item" property="producer" mv-multiple>
<meta property="label" />
<a class="ipc-metadata-list-item__list-content-item ipc-metadata-list-item__list-content-item--link" href="[itemURL]" property="itemURL" target="_blank">[label]</a>
</li>
</ul>
</div>
</li>
<li class="ipc-metadata-list__item">
<span class="ipc-metadata-list-item__label">Production Company</span>
<div class="ipc-metadata-list-item__content-container">
<ul style="list-style: none !important" class="ipc-inline-list ipc-inline-list--show-dividers ipc-inline-list--inline ipc-metadata-list-item__list-content baseAlt">
<li role="presentation" class="ipc-inline-list__item" property="productionCompany" mv-multiple>
<meta property="label" />
<a class="ipc-metadata-list-item__list-content-item ipc-metadata-list-item__list-content-item--link" href="[itemURL]" property="itemURL" target="_blank">[label]</a>
</li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="ipc-page-content-container ipc-page-content-container--center">
<section class="ipc-page-background ipc-page-background--base TitleMainBelowTheFoldGroup__RelativePageBackground-sc-1vpywau-0 kcYXNj">
<div class="ipc-page-grid ipc-page-grid--bias-left">
<div class="TitleMainBelowTheFoldGroup__TitleMainPrimaryGroup-sc-1vpywau-1 btXiqv ipc-page-grid__item ipc-page-grid__item--span-2">
<!-- videos -->
<section class="ipc-page-section ipc-page-section--base celwidget">
<div class="ipc-title ipc-title--section-title ipc-title--base ipc-title--on-textPrimary ipc-title-link-wrapper">
<h3 class="ipc-title__text">Videos</h3>
</div>
<div class="grid-container" style="display: grid; grid-template-columns: auto auto auto; grid-gap: 0.5em; margin: 1em 0;">
<div property="movieVideos" mv-value="youtube.search([movieLabel])" mv-multiple class="grid-item ipc-sub-grid ipc-sub-grid--page-span-2 ipc-sub-grid--nowrap ipc-shoveler__grid">
<iframe property="videoId" width="270" height="150" src="https://www.youtube.com/embed/[videoId]" allowfullscreen>
</iframe>
</div>
</div>
</section>
<!-- cast members -->
<section class="ipc-page-section ipc-page-section--base celwidget">
<div class="ipc-title ipc-title--section-title ipc-title--base ipc-title--on-textPrimary ipc-title-link-wrapper">
<h3 class="ipc-title__text">Cast</h3>
</div>
<div class="grid-container" style="display: grid; grid-template-columns: auto auto auto; grid-gap: 0.5em; margin: 1em 0;">
<div property="castMember" mv-multiple hidden="[image = '']" class="ipc-sub-grid ipc-sub-grid--page-span-2 ipc-sub-grid--wraps-at-above-l title-cast__grid">
<a class="hTEaNu" target="_blank" href="[itemURL]" property="itemURL">
<div class="kINeVb">
<div class="ipc-avatar ipc-avatar--base ipc-avatar--dynamic-width">
<div class="ipc-media ipc-media--avatar ipc-image-media-ratio--avatar ipc-media--base ipc-media--avatar-m ipc-media--avatar-circle ipc-avatar__avatar-image ipc-media__img" style="width:100%">
<img alt="" class="ipc-image" loading="lazy" property="image" sizes="50vw, (min-width: 480px) 34vw, (min-width: 600px) 26vw, (min-width: 1024px) 16vw, (min-width: 1280px) 16vw" width="140" />
</div>
</div>
</div>
<div class=" fBAofn">
<p class="eyqFnv" property="label"> </p>
<div class="title-cast-item__characters-list">
<ul class="ipc-inline-list ipc-inline-list--no-wrap ipc-inline-list--inline base">
<li>
<span class="boDDsy gNEvzo" property="description"></span>
</li>
</ul>
</div>
</div>
</a>
</div>
</div>
</section>
<!-- storyline -->
<section class="ipc-page-section ipc-page-section--base celwidget">
<div class="ipc-title ipc-title--section-title ipc-title--base ipc-title--on-textPrimary ipc-title-link-wrapper">
<h3 class="ipc-title__text">Storyline</h3>
</div>
<div class="iywpty">
<div class="ipc-overflowText ipc-overflowText--pageSection ipc-overflowText--height-long ipc-overflowText--long ipc-overflowText--base">
<div class="ipc-html-content ipc-html-content--base">
<div property="description"></div>
</div>
</div>
<div class="ipc-chip-list Keywords__PlotKeywords-ke3vmf-0 bHzejW" data-testid="storyline-plot-keywords" property="distributedBy" mv-multiple hidden="[itemURL = '']">
<div style="display: inline;">
<a class="ipc-chip ipc-chip--on-base" href="[itemURL]" property="itemURL">
<span class="ipc-chip__text" property="label"></span>
</a>
</div>
</div>
</div>
</section>
<!-- details -->
<section class="ipc-page-section ipc-page-section--base celwidget">
<div class="ipc-title ipc-title--section-title ipc-title--base ipc-title--on-textPrimary ipc-title-link-wrapper">
<h3 class="ipc-title__text">Details</h3>
</div>
<div class="cgqHBf">
<ul class="ipc-metadata-list ipc-metadata-list--dividers-all ipc-metadata-list--base">
<li role="presentation" class="ipc-metadata-list__item">
<span class="ipc-metadata-list-item__label">Release date:</span>
<div class="ipc-metadata-list-item__content-container">
<ul class="ipc-inline-list ipc-inline-list--show-dividers ipc-inline-list--inline ipc-metadata-list-item__list-content base">
<li property="publicationDate"></li>
</ul>
</div>
</li>
<li role="presentation" class="ipc-metadata-list__item">
<span class="ipc-metadata-list-item__label">Country of origin:</span>
<div class="ipc-metadata-list-item__content-container">
<ul class="ipc-inline-list ipc-inline-list--show-dividers ipc-inline-list--inline ipc-metadata-list-item__list-content base">
<li property="countryOfOrigin">
<span property="label"></span>
</li>
</ul>
</div>
</li>
<li role="presentation" class="ipc-metadata-list__item">
<span class="ipc-metadata-list-item__label">Official sites:</span>
<div class="ipc-metadata-list-item__content-container">
<ul class="ipc-inline-list ipc-inline-list--show-dividers ipc-inline-list--inline ipc-metadata-list-item__list-content base">
<li>
<a class="ipc-metadata-list-item__list-content-item ipc-metadata-list-item__list-content-item--link" property="officialWebsite" src="[officialWebsite]" target="_blank">[officialWebsite]</a>
</li>
</ul>
</div>
</li>
<li role="presentation" class="ipc-metadata-list__item">
<span class="ipc-metadata-list-item__label">Language:</span>
<div class="ipc-metadata-list-item__content-container">
<ul class="ipc-inline-list ipc-inline-list--show-dividers ipc-inline-list--inline ipc-metadata-list-item__list-content base">
<li property="originalLanguageOfFilmOrTVShow">
<span property="label"></span>
</li>
</ul>
</div>
</li>
<li role="presentation" class="ipc-metadata-list__item">
<span class="ipc-metadata-list-item__label">Narrative Location:</span>
<div class="ipc-metadata-list-item__content-container">
<ul class="ipc-inline-list ipc-inline-list--show-dividers ipc-inline-list--inline ipc-metadata-list-item__list-content base">
<li property="narrativeLocation">
<span property="label"></span>
</li>
</ul>
</div>
</li>
</ul>
</div>
</section>
<!-- box office -->
<section class="ipc-page-section ipc-page-section--base celwidget">
<div class="ipc-title ipc-title--section-title ipc-title--base ipc-title--on-textPrimary ipc-title-link-wrapper">
<h3 class="ipc-title__text">Box office</h3>
</div>
<div class="cgqHBf">
<ul class="ipc-metadata-list ipc-metadata-list--dividers-all ipc-metadata-list--base">
<li role="presentation" class="ipc-metadata-list__item">
<span class="ipc-metadata-list-item__label">Cost:</span>
<div class="ipc-metadata-list-item__content-container">
<ul class="ipc-inline-list ipc-inline-list--show-dividers ipc-inline-list--inline ipc-metadata-list-item__list-content base">
<li>
$<span property="cost"></span>
</li>
</ul>
</div>
</li>
<li role="presentation" class="ipc-metadata-list__item">
<span class="ipc-metadata-list-item__label">Country of origin:</span>
<div class="ipc-metadata-list-item__content-container">
<ul class="ipc-inline-list ipc-inline-list--show-dividers ipc-inline-list--inline ipc-metadata-list-item__list-content base">
<li>
$<span property="boxOffice"></span>
</li>
</ul>
</div>
</li>
</ul>
</div>
</section>
<!-- technical specs -->
<section class="ipc-page-section ipc-page-section--base celwidget">
<div class="ipc-title ipc-title--section-title ipc-title--base ipc-title--on-textPrimary ipc-title-link-wrapper">
<h3 class="ipc-title__text">Technical specs</h3>
</div>
<div class="cgqHBf">
<ul class="ipc-metadata-list ipc-metadata-list--dividers-all ipc-metadata-list--base">
<li role="presentation" class="ipc-metadata-list__item">
<span class="ipc-metadata-list-item__label">Color:</span>
<div class="ipc-metadata-list-item__content-container">
<ul class="ipc-inline-list ipc-inline-list--show-dividers ipc-inline-list--inline ipc-metadata-list-item__list-content base">
<li property="cost">
<span property="label"></span>
</li>
</ul>
</div>
</li>
<li role="presentation" class="ipc-metadata-list__item">
<span class="ipc-metadata-list-item__label">Distribution format:</span>
<div class="ipc-metadata-list-item__content-container">
<ul class="ipc-inline-list ipc-inline-list--show-dividers ipc-inline-list--inline ipc-metadata-list-item__list-content base">
<li property="distributionFormat">
<span property="label"></span>
</li>
</ul>
</div>
</li>
</ul>
</div>
</section>
<!-- related news -->
<section class="ipc-page-section ipc-page-section--base celwidget">
<div class="ipc-title ipc-title--section-title ipc-title--base ipc-title--on-textPrimary ipc-title-link-wrapper">
<h3 class="ipc-title__text">Related news</h3>
</div>
<div class="ipc-list-card--border-line ipc-list-card--tp-none ipc-list-card--bp-none ipc-list-card DidYouKnowCard__StyledListCard-sc-1aia7w-1 hAsQOH ipc-list-card--base">
<ul class="ipc-metadata-list ipc-metadata-list--dividers ipc-metadata-list--base">
<li class="ipc-metadata-list__item ipc-metadata-list__item--stacked ipc-metadata-list-item--link" property="nytNews" mv-value="nytimes.search([label])" mv-multiple>
<meta property="name" />
<a class="ipc-metadata-list-item__label ipc-metadata-list-item__label--link" property="url" href="[url]" target="_blank">[name]</a>
<span property="description"></span>
</li>
</ul>
</div>
</section>
</div>
</div>
</section>
</div>
</section>
</div>
Also see: Tab Triggers