Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tavisca-dpingale/73d0de3771334a049b0ff548335d2b58 to your computer and use it in GitHub Desktop.
Save tavisca-dpingale/73d0de3771334a049b0ff548335d2b58 to your computer and use it in GitHub Desktop.
HTML page structure / Importance of Head tag
<!DOCTYPE html>
<html lang="en">
<head>
<!-- CHARACTER SET META -->
<meta charset="UTF-8">
<!-- VIEWPORT META -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- MICROSOFT OLD BROWSER COMPATIBILITY -->
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- DESCRIPTION META TAG -->
<meta name="description" content="Web page description">
<!-- KEYWORDS META TAG -->
<meta name="keywords" content="HTML, CSS, XML, JavaScript">
<!-- AUTHOR META TAG -->
<meta name="author" content="Dhananjay">
<!-- TITLE META TAG -->
<title>Page Title</title>
<!-- LINK META TAG -->
<link rel="stylesheet" href="style.css" />
<!-- STYLE META TAG -->
<style>
body {background-color: powderblue;}
h1 {color: red;}
p {color: blue;}
</style>
</head>
<body>
<div class="page-wrapper">
CONTENT GOES HERE
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment