\ みんなのコーディングバイブル /

head内初期設定

head内で記述しておくことのまとめとして下記の記事を書いてきました。

  • reset.cssの使い方・書く順番
  • normalize.cssとは?
  • FontAwesomeの設定
  • jQuery(CDN)の読み込み方
  • Google Fontの使い方

これらを一つにまとめコピペで最初の記述が終わってしまうようにしてみました。

これで少しは時短になったことを願います。

<!DOCTYPE html>
<html lang="ja">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name=”description“ content=“説明文~“ />
  <title>Document</title>

  <!-- リセットCSSの読み込み -->
  <link rel="stylesheet" href="./css/reset.css">

  <!-- FontAwesomeのKitCodeはご自身コードを入れてください。 -->
  <script src="https://kit.fontawesome.com/.js" crossorigin="anonymou"></script>

  <!-- jQueryの読み込み -->
  <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
  crossorigin="anonymous">
  </script>

  <!-- グーグルフォントはあくまでも仮なのでご自身で記述してください。 -->
 <link rel="preconnect" href="https://fonts.googleapis.com">
 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 <link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">


  <link rel="stylesheet" href="./css/style.css">
</head>
<body>
 <header id="header">
 </header>
 <main id="main">
 </main>
 <footer id="footer">
 </footer>
 <script src="./js/script.js"></script>
</body>
</html>