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

              
                <h1>Ich bin eine Website</h1>

<p>Schriftart, Farben, Abstände und Größen der HTML-Elemente werden gestalterisch vom Browser schon vorgegeben.</p>

<p>Links zum Beispiel sind <a href="#1">blau und unterstrichen</a>, besuchte Links sind <a href="#2">lila</a>.</p>

<p>Manche Elemente können <strong>dick</strong> sein, <em>schräggestellt</em>, <strike>durchgestrichen</strike>, <small>klein</small>, <sup>hoch-</sup> oder <sub>tiefgestellt</sub>.</p>

<h2>Überschriften sind auch dick</h2>

<p>Ungeordnete Listen in etwa sind …</p>

<ul>
  <li>Eingerückt</li>
  <li>Mit einem Punkt versehen</li>
</ul>

<h3>Auch die kleinen Überschriften haben ihre Vorgaben</h3>

<p>Was die Browser aber vorgeben, kannst du überschreiben. Mit CSS.</p>

<p>Wie das geht, erkläre ich dir auf <a href="https://hawk-gt1191.de/">hawk-gt1191.de</a>.</p>

<p>David</p>
              
            
!

CSS

              
                body {
  /* Ändere die Schriftgröße auf 18px un die Schriftfarbe auf Rot */
  /* Beobachte, wie sich das auf den Rest der Website auswirkt. */
}

/* Das sind nur Vorgaben zur Demo: */
[href="#1"]{color:blue;}[href="#2"]{color:purple;}

              
            
!

JS

              
                
              
            
!
999px

Console