Unit 5 ยท Traditional Lifeways
Stage 1 of 7
Unit 5 ยท Stage 1
This unit builds a single-page website about the traditional lifeways of Tribal Nations across Minnesota, North Dakota, and South Dakota. You start with the page skeleton, the three big parts every page needs. The editor already has your page started. Play with it, or press ๐ Type it with me to be guided. (pause on a highlighted word to see what it does)
Every tag you have used has a job. <h1> is a heading. <p> is a paragraph. Those tags describe what something is. Semantic HTML extends that idea to the whole page. Instead of wrapping everything in <div> tags, you name the structure directly.
<header><main><main> per page.<footer><div> until you style them, but browsers, search engines, and screen readers can all read their meaning. Naming the parts of a page about Tribal lifeways is a way of building it with care from the very first line.Look at the editor. The skeleton, the page title, and the base styles for the body are already there, the same kinds of rules you wrote in earlier units. You will add the three semantic parts below them.
body { ... }Georgia, serif, a readable font that carries a sense of story and document. It removes the default margin and padding so nothing is pushed in from the edges.background-color: #f5f0ebcolor: #1a1a1aGive the page a <header> that announces the site, and a CSS rule that styles it. This is the top bookend of your page.
background-color: #2d4a3ecolor: whitepadding: 40px 20pxheader rule inside <style>, and add the <header> with an <h1> and a <p> inside <body>. Use the example below, then press โถ Run./* add this inside <style> */
header {
background-color: #2d4a3e;
color: white;
padding: 40px 20px;
text-align: center;
}
<!-- add this inside <body> -->
<header>
<h1>Traditional Lifeways</h1>
<p>Food, the buffalo, and the trade routes that connected nations</p>
</header>
Which semantic tag holds the primary content of the page, the one there should be only one of? Type it, then press Submit to unlock the last step.
Now add the middle and the bottom. The <main> will hold all your content in later stages, and the <footer> is the matching bottom bookend.
max-width: 960pxmargin: 0 autoauto splits the leftover space equally, which centers the block.footer { background-color: #2d4a3e }main and footer rules inside <style>, then add the <main> and <footer> inside <body>. Use the examples below, then press โถ Run.main {
max-width: 960px;
margin: 0 auto;
padding: 40px 20px;
}
footer {
background-color: #2d4a3e;
color: white;
text-align: center;
padding: 24px 20px;
font-size: 0.875rem;
}
<main> <p>Content coming soon.</p> </main> <footer> <p>Built with HTML and CSS</p> </footer>
Experiment, then set it back the way you like it.
background-color to #5c3317, a rich brown, and see how the mood shifts.background-color to #e8f0e8, a soft sage green.font-family to Arial, sans-serif and compare the feel.To complete Stage 1, your page needs a styled <header>, a <main>, and a <footer>. Press Check my work when you are ready. This opens Stage 2 and lets your teacher see that you finished.