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 lang="ja">
 <head>
  <meta charset="utf-8"/>
  <title>
   ウィキペディア
  </title>
  <script src="https://cdn.tailwindcss.com">
  </script>
  <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&amp;display=swap" rel="stylesheet"/>
  <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet"/>
  <style>
   body {
            font-family: 'Noto Sans JP', sans-serif;
        }
  </style>
 </head>
 <body class="bg-gray-100">
  <div class="max-w-screen-xl mx-auto">
   <!-- Header -->
   <header class="flex justify-between items-center py-4 px-6 bg-white shadow">
    <div class="flex items-center">
     <i class="fas fa-bars text-gray-700 text-xl">
     </i>
     <span class="text-gray-700 text-lg ml-4">
      ウィキペディア
     </span>
     <span class="text-gray-500 text-sm ml-2">
      フリー百科事典
     </span>
    </div>
    <div class="flex items-center">
     <input class="px-4 py-2 border rounded" placeholder="Wikipedia内を検索" type="search"/>
     <button class="text-blue-600 ml-2">
      検索
     </button>
    </div>
    <div class="flex items-center">
     <span class="text-gray-700 text-sm">
      アカウント作成
     </span>
     <i class="fas fa-user text-gray-700 text-xl ml-4">
     </i>
     <i class="fas fa-ellipsis-v text-gray-700 text-xl ml-2">
     </i>
    </div>
   </header>
   <!-- Main Content -->
   <main class="p-6">
    <!-- Left Column -->
    <div class="flex">
     <div class="w-3/4 pr-4">
      <div class="bg-white p-6 shadow mb-6">
       <h2 class="text-xl font-bold mb-4">
        ウィキペディアへようこそ
       </h2>
       <p class="text-sm text-gray-700">
        ウィキペディアは皆で無料で作るフリー百科事典です
       </p>
       <div class="mt-4">
        <img alt="Placeholder image of a landmark with a blue sky" class="mb-4" height="400" src="https://oaidalleapiprodscus.blob.core.windows.net/private/org-m8a3d5zryxxIsx5WNw8mdSTR/user-3v7HkRkG465Nn5lgO0l0aDCN/img-NCs6FkMNPanz0X40db2Nhb14.png?st=2023-11-17T07%3A21%3A26Z&amp;se=2023-11-17T09%3A21%3A26Z&amp;sp=r&amp;sv=2021-08-06&amp;sr=b&amp;rscd=inline&amp;rsct=image/png&amp;skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&amp;sktid=a48cca56-e6da-484e-a814-9c849652bcb3&amp;skt=2023-11-17T02%3A34%3A44Z&amp;ske=2023-11-18T02%3A34%3A44Z&amp;sks=b&amp;skv=2021-08-06&amp;sig=8rAqKxQebOIhWDpkhANro255antEINWSfTE4Mak/knY%3D" width="600"/>
        <h3 class="text-lg font-bold mb-2">
         選り抜き記事
        </h3>
        <p class="text-sm text-gray-700">
         ビザンティン建築は、東ローマ帝国(ビザンティン帝国、ビザンティン帝国)の労働下で発達した建築形式である。...
        </p>
       </div>
      </div>
     </div>
     <!-- Right Column -->
     <div class="w-1/4">
      <div class="bg-white p-6 shadow mb-6">
       <h3 class="text-lg font-bold mb-4">
        今日の一枚
       </h3>
       <img alt="Placeholder image of a squirrel on a tree branch with autumn leaves" class="mb-4" height="200" src="https://oaidalleapiprodscus.blob.core.windows.net/private/org-m8a3d5zryxxIsx5WNw8mdSTR/user-3v7HkRkG465Nn5lgO0l0aDCN/img-AQVE2uCfdYaC2Yr5z8EzfzcN.png?st=2023-11-17T07%3A21%3A26Z&amp;se=2023-11-17T09%3A21%3A26Z&amp;sp=r&amp;sv=2021-08-06&amp;sr=b&amp;rscd=inline&amp;rsct=image/png&amp;skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&amp;sktid=a48cca56-e6da-484e-a814-9c849652bcb3&amp;skt=2023-11-17T02%3A31%3A33Z&amp;ske=2023-11-18T02%3A31%3A33Z&amp;sks=b&amp;skv=2021-08-06&amp;sig=f2TaUrJauJXw0MRDLVtsirPE1rYk9Dk%2B5akBGyhfNfQ%3D" width="300"/>
       <p class="text-sm text-gray-700">
        シマリス(Sciurus lis)、南岡山県野生の土曜日にて
       </p>
       <div class="text-xs text-gray-500 mt-4">
        <p>
         ライセンス: 表示 - 継承
        </p>
       </div>
      </div>
      <div class="bg-white p-6 shadow">
       <h3 class="text-lg font-bold mb-4">
        今日は何の日 11月17日
       </h3>
       <ul class="text-sm text-gray-700">
        <li>
         国際学生の日
        </li>
        <li>
         肺がん撲滅デー
        </li>
       </ul>
      </div>
     </div>
    </div>
   </main>
  </div>
 </body>
</html>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console