Advertisement
makispaiktis

Codecademy - 16th Course (HTML Example)

Oct 19th, 2019 (edited)
491
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 4.35 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.   <title>Typography Blog</title>
  5.   <link rel="stylesheet" type="text/css" href="styles/reset.css">
  6.   <link rel="stylesheet" type="text/css" href="styles/style.css">
  7. </head>
  8. <body>
  9.  
  10.   <!-- Header -->
  11.   <nav class="header">
  12.     <ul>
  13.       <li><a class="home" href="#top">FAVORITE FONTS</a></li>
  14.       <li><a class="pagelink" href="#serif">SERIF</a></li>
  15.       <li><a class="pagelink" href="#sans">SANS-SERIF</a></li>
  16.       <li><a class="pagelink" href="#mono">MONOSPACED</a></li>
  17.     </ul>
  18.   </nav>
  19.  
  20.   <!-- Banner Section -->
  21.   <div class="banner">
  22.     <h1>Typography</h1>
  23.       <p>While typography has been practiced for many centuries, digital font design is a relatively new discipline. There are some great examples of old-school fonts (also called typefaces) which have been adapted for use on digital displays. However, I would like to highlight a few of my favorite fonts that were created with screens in mind.</p>
  24.   </div>
  25.  
  26.   <!-- Serif Section -->
  27.   <div id="serif">
  28.  
  29.     <!-- Editorial Section - Serif -->
  30.     <div class="editorial">
  31.       <h2>Serif</h2>
  32.       <p>Serifs are the small features at the end of strokes within letters. These features are <strong>functional as well as decorative</strong>. Serif fonts are widely used for body text (eg. articles) because they are considered easier to read than sans-serif fonts in print.</p>
  33.       <p><em>Serif fonts can often create a feeling of traditionalism and antiquity, due to their common use in printed materials for many years.</em></p>
  34.     </div>
  35.  
  36.     <!-- Font Card - Serif -->
  37.     <div class="font-card garamond">
  38.       <h2>Garamond</h2>
  39.       <p class="creator">by Claude Garamond (16th Century)</p>
  40.       <div class="garamond">
  41.         <span class="sample">
  42.           <h2>Bold</h2>
  43.           <span class="bold text">Abc</span>
  44.         </span>
  45.         <span class="sample">
  46.           <h2>Regular</h2>
  47.           <span class="regular text">Abc</span>
  48.         </span>
  49.         <span class="sample">
  50.           <h2>Italic</h2>
  51.           <span class="italic text">Abc</span>
  52.         </span>
  53.       </div>
  54.     </div>
  55.   </div>
  56.  
  57.   <!-- Sans-Serif Section -->
  58.   <div id="sans">
  59.  
  60.     <!-- Editorial Section - Sans-Serif -->
  61.     <div class="editorial">
  62.       <h2>Sans-Serif</h2>
  63.       <p>Sans-Serif ("without serif") describes fonts with characters which lack flourishes at the ends of the strokes. Sans-serif fonts have become the most prevalent for display of text on computer screens, as on lower-resolution digital displays, fine details like serifs may disappear or appear too large.</p>
  64.       <p><em>Sans-serif fonts are often used to project an image of simplicity, modernity or minimalism.</em></p>
  65.     </div>
  66.  
  67.     <!-- Font Card - Sans-Serif -->
  68.     <div class="font-card">
  69.       <h2>Helvetica</h2>
  70.       <p class="creator">by Max Miedinger & Eduard Hoffman (1957)</p>
  71.      <div class="helvetica">
  72.        <span class="sample">
  73.          <h2>Bold</h2>
  74.          <span class="bold text">Abc</span>
  75.        </span>
  76.        <span class="sample">
  77.          <h2>Regular</h2>
  78.          <span class="regular text">Abc</span>
  79.        </span>
  80.      </div>
  81.    </div>
  82.  </div>
  83.  
  84.  <!-- Monospaced Section -->
  85.  <div id="mono">
  86.  
  87.    <!-- Editorial - Monospaced -->
  88.    <div class="editorial">
  89.      <h2>Monospaced</h2>
  90.      <p>A monospaced font's characters each occupy the same amount of horizontal space. This contrasts with most fonts, where the letters and spacings have different widths. For example, the two high-use letters "I" and "E" do not need the same footprint. The first monospaced Western typefaces were designed for typewriters.</p>
  91.      <p><em>Many text editors (like those used to write computer code) use monospaced fonts, which aid in distinguishing between potentially similar characters (like "l" and "1") and in counting the number of characters in a line.</em></p>
  92.    </div>
  93.  
  94.    <!-- Font Card - Monospaced -->
  95.    <div class="font-card">
  96.      <h2>Space Mono</h2>
  97.      <p class="creator">by Colophon Foundry (2016)</p>
  98.      <div class="space">
  99.        <span class="sample">
  100.          <h2>Bold</h2>
  101.          <span class="bold text">Abc</span>
  102.        </span>
  103.        <span class="sample">
  104.          <h2>Regular</h2>
  105.          <span class="regular text">Abc</span>
  106.        </span>
  107.      </div>
  108.    </div>
  109.  </div>
  110. </body>
  111. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement