Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ 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.


Auto Save

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 Tags

- contain all of the content of your document

- can contain introductory information such as logos, a navigational menu or header tags (h1-h6). A page may have more than one header.

- specify the main content of a page. 
- only be one per document 
- exclude headers or footers

- specifies the main header to a document
- only one per document!

- specifies a hyperlink (a link to another page) or an anchor

- contain information such as contact details, copywrite details or a sitemap

    <!-- logos and navigation go here -->
    <!-- footer info such as contact details here -->


                /* Basic CSS tips

- allows you to import and use fonts from Google Fonts
- alternatively you can use a standard font that doesn't require import, such as Arial 

CSS Animation

- allows you to change styling across a duration of time
- the animation starts at 0% and ends at 100%

- targets html tags in specific states
- :hover targets selector when hovered over by mouse

CSS borders


@import url('');

body {
  animation-name: changeBackground;
  animation-duration: 15s;
  animation-iteration-count: infinite;
  overflow: hidden;

@keyframes changeBackground {
  0% {
     background-image: url("");
  25% {
    background-image: url("");
  50% {
     background-image: url("");
  75% {
     background-image: url("");
  100% {
    background-image: url("");

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;

h1 {
  text-transform: uppercase;
  font-family: 'Erica One', sans-serif;
  color: white;
  font-size: 10vw;
  cursor: pointer;
  tab-index: 1;
  padding: 5vw;
  border-width: 10px;
  border-color: white;

h1:hover {
  animation-name: growText;
  animation-duration: 4s;
  animation-iteration-count: infinite;

@keyframes growText {
  0% {
    font-size: 10vw;
  50% {
    font-size: 20vw;
  100% {
    font-size: 10vw;


                /* Resources




/* Tasks

1. Change font, color and content of the h1 'Sumo'.
2. Change the border style of the h1.
3. Change background from sumo images to different colors. You will need to use something other than 'background-image'. Can you find out what you need to reference a background color?
3. Add a tagline to your title using a <p></p> tag. Can you style it?