<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/x-icon" href="/favicon.png"/>
<title> Page Title </title>
<meta name="description" content="Text to add a description">
<meta name="author" content="Author Name">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<h1>Welcome to My Website</h1>
</main>
<script src="index.js"></script>
</body>
</html>
Use this code as a starting point for HTML pages.
<div class="multiple"></div>
<div class="multiple"></div>
<div class="multiple"></div>
<section id="single"></section>
Use classes to target multiple elements, ids to target only one.
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://example.com">
<meta property="og:title" content="Title Here">
<meta property="og:description" content="describe website here">
<meta property="og:image" content="public/pic.jpg">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://example.com">
<meta property="twitter:title" content="Title Here">
<meta property="twitter:description" content="describe website here">
<meta property="twitter:image" content="public/metapic.jpg">
Use this code to give a different appearance for when your website is posted on social platforms.