cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <html>

<head>
	<title>Readability & Typography</title>

	<link href="https://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet">

	<link href='https://fonts.googleapis.com/css?family=Crimson+Text:400,400italic,700' rel='stylesheet' type='text/css'>
	<link href='https://fonts.googleapis.com/css?family=Julius+Sans+One' rel='stylesheet' type='text/css'>
	<link href='https://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>


</head>

<body>
	<!-- Here, I'm using Google Fonts... -->

	<h4>We're going to focus on a few simple ways to make a page more readable</h4>
	<p style="font-family: Times; font-size: 12px;">Aren't you sick of reading stuff that look like this?</p>

	<div class="col-md-12 text-center">
		<h2>Using seven <code>CSS</code> properties...</h4>
  <p><code>font-family</code></p>
  <p><code>font-size</code></p>
  <p><code>line-height</code></p>
  <p><code>margin-left</code></p>
  <p><code>margin-right</code></p>
		<p><code>color</code></p>
		<p><code>width</code></p>
  <h2>And the font pairings showcased here...<p><code><a href="https://femmebot.github.io/google-type/">Google Web Fonts Typographic Project</a></code></p></h2>
		<h4>We're going to explore basic principles of readability and typography...so that our websites stop looking like <span style="font-family: Times; font-size: 12px; color: black;">this.</span>
<hr>

    </div>

    <h1>This is a heading</h1>
    <!-- This is dummy text, used by typographers for centuries. -->
    <p>Here I can write a paragraph introduction. </p>
    <h3>This is a subheading</h3>
    <!-- Practice making comments with ⌘/ -->
    <!-- More dummy text! -->
    <p>This would be another paragraph.</p>
    
    <h2>What's happening here?</h2>
    <p>There are three kinds of typefaces on this page:</p>
<div class="alert alert-info">

    <p>1. Serif: look at a (printed) book. You'll find a serif typeface.</p>
    <p style="font-family: Oswald">2. Sans serif: these look modern, technical, and lighter. Smartphones, the NYC Subway signs- all Sans serif.</p>
    <p style="font-family: Menlo">3. Monospace: Ever seen a typewriter?</p>
</div>
    
    <p>Deliberately using contrasting font types for different elements (body text vs. headings, for example) helps users more easily navigate content.</p>
    <div class="alert alert-warning">
    	<strong>Coding connection:</strong> Why do you think we always see code written in <span style="font-family: Menlo">monospace</span> fonts?
    </div> 
    
    <p>I'm also deliberately using just 3 colors- one for body, one for <span style="color: #3c8FFF">headings</span>, and one for <code>code</code>.
            
          
!
            
              h1,
h2,
h3,
h4 {
	font-family: "Oswald";
	text-align: center;
	color: #3C8FFF;
}

p {
	font-family: "Crimson Text", Georgia;
	font-size: 22px;
	line-height: 1.5;
	margin-left: 10% !important;
	margin-right: 10% !important;
}

code{
	background-color: #F9F2F4;
	border-radius: 5px;
	padding: 5px;
	color: #C7254E;
	font-family: Inconsolata;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console