[KDT]FCFE-2週3日作成ページ


vanillajs Webページの作成


ソーシャルメディア共有の準備(SEO)


検索エンジンの最適化

オープングラフィックスプロトコル


ソーシャルメディアとしてWebページを共有する際に優先的に使用する情報を指定します.
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Starbucks" />
<meta property="og:title" content="Starbucks Coffee Korea" />
<meta property="og:description" content="스타벅스는 세계에서 가장 큰 다국적 커피 전문점으로, 64개국에서 총 23,187개의 매점을 운영하고 있습니다." />
<meta property="og:image" content="./images/starbucks_seo.jpg" />
<meta property="og:url" content="https://starbucks.co.kr" />

ツイッターカード


ソーシャルメディアとしてWebページを共有する際に優先的に使用する情報を指定します.
<meta property="twitter:card" content="summary" />
<meta property="twitter:site" content="Starbucks" />
<meta property="twitter:title" content="Starbucks Coffee Korea" />
<meta property="twitter:description" content="스타벅스는 세계에서 가장 큰 다국적 커피 전문점으로, 64개국에서 총 23,187개의 매점을 운영하고 있습니다." />
<meta property="twitter:image" content="./images/starbucks_seo.jpg" />
<meta property="twitter:url" content="https://starbucks.co.kr" />

FontとIconが準備完了


Google Fonts


複数のブラウザで同じフォントを使用することを指定します.
無料のGoogleフォントページからフォントを選択します.
リンクで適用!
△容量が大きいので、複数のフォントを乱発しないほうがいいです.
index.html
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link href="https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700&display=swap" rel="stylesheet" />
cssページに適用
bodyに適用すると、テキストはbodyのすべての要素を継承して適用されます.
main.css
body {
    font-family: 'Nanum Gothic', sans-serif;
}

Google Material Icons


Googleが提供するビジネスアイコンを使用します!
リンクとして使用
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
使用例
<div class="material-icons">upload</div>

タイトルの作成