Lab: Hello, Homepage
Due: Wednesday, September 9 at 11:59pm (one week after it is assigned) · Worth: 4 points
HTML gives a webpage its structure. In this lab you’ll make a homepage about a topic of your choice. You’ll add the content now and style it with CSS in the next lab.
Start
Complete course setup, then download and extract the homepage starter. Open its inner lab-homepage folder in VS Code. In Source Control, choose Initialize Repository, commit the starter files, then Publish to GitHub. Name the public repository lab-homepage and choose your own account as the owner. See the repository guide for those steps. If you already created your repository from the GitHub template, keep using it. To get another local copy, follow the cloning instructions.
Build your homepage
Edit index.html to introduce your topic. Add the list, link, and image described below. For a local image, put the file beside index.html and use its filename as the src. You can also use an HTTPS image URL. The HTML reading has examples of these elements.
-
Use valid HTML with
<!DOCTYPE html>, one<html lang="en">, a<head>with<meta charset="utf-8">and a nonempty<title>, and a<body>. -
Introduce your topic with exactly one
<h1>and at least one nonempty paragraph. -
Include an ordered or unordered list with at least three items.
-
Link to a real
httporhttpspage. -
Include an image with a working
srcand nonemptyalttext. Commit local image files with the page.
Check and submit
Save index.html, open it in a browser, and reload after each change. Check the image and follow the link. Upload the file to the HTML validator and fix reported errors.
Commit and sync index.html and any local image files. On Gradescope, choose GitHub and submit lab-homepage and main. The submission guide explains resubmission. Keep this repository for the CSS lab.