Pen Settings

HTML

CSS

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

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

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

              
                <html>
  <head>
  </head>
  <body>
    <h1>Welcome</h1>
    <p>
      This is Vanilla coding!           <br/>
      <br/>
      We are here to teach you how to code.
      <br/>
      Don't be so nervous.
    </p>
  </body>
</html>
              
            
!

CSS

              
                /*

  해보세요 ✅

  h1에 적용된 CSS 코드를 참고해서 p 태그에 새로운 폰트를 적용시켜보세요!

  1) https://fonts.google.com/ 에서 마음에 드는 폰트를 클릭한 후,

  2) select this style을 클릭,

  3) 오른쪽의 "selected families" 탭의 "Use on the web"에 있는 @import를 클릭하시면

  4) 아래에 보이는 것과 같은 @import 코드를 복사할 수 있습니다.

  이후 font-family 속성에 있는 💬값을 해당 폰트의 이름으로 수정해서

  p태그의 텍스트에 여러분이 골라주신 폰트를 적용시켜보세요.

*/

@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+P+One&family=Noto+Sans+KR:wght@700&display=swap');

body {
  font-size: 2em;
  /* em 이라는 단위에 대해 알고 계신가요? */
  /* 참고 자료 - https://www.w3schools.com/cssref/css_units.asp */
}

h1 {
  font-family: 'Mochiy Pop P One';
}

p {
  font-family: 💬;
}

              
            
!

JS

              
                
              
            
!
999px

Console