<!DOCTYPE html>
<html>
<head>
<title>The grid-template-areas property in CSS</title>
<style type="text/css">
#page {
display: grid;
width: 100%;
height: 250px;
grid-template-areas: "head head"
"nav main"
"nav foot";
grid-template-rows: 50px 1fr 30px;
grid-template-columns: 150px 1fr;
}
#page > header {
grid-area: head;
background-color: #8cffff;
}
#page > nav {
grid-area: nav;
background-color: #ff8ccf;
}
#page > main {
grid-area: main;
background-color: #f8cdff;
}
#page > footer {
grid-area: foot;
background-color: #8c0fff;
}
</style>
</head>
<body>
<section id="page">
<header>Header</header>
<nav>Navigation</nav>
<main>Main area</main>
<footer>Footer</footer>
</section>
</body>
</html>