Skip to content

lkwokj/sdai-ic-d2-image-and-anchor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Band Camp

complete

Description 📄

This lab reviews previously HTML tags and introduces the img and a tags.

The scenario is that you've been hired to create a webpage for a local band. At this point we just need to get a few images, headers, and paragraphs describing the band, and a placeholder link to their merch store.


Codespaces Guidance 📄

Should you need guidance on how to fork, open, edit, and maintain your codespaces, please use the link below by right clicking and opening in a new tab.

GitHub Codespaces Guidance


ToDo list ✅

Attention: When you complete a task, put an x in the middle of the brackets to mark it off your ToDo list.

  1. Create an index.html file, type ! and hit enter to create your boilerplate html.

boilerplate

  1. Create a <h1> header with the text content set to the band's name The Devs.

  2. Create a <h2> header with the text content set to Description. Underneath that add a <p> tag and type lorum into it to generate dummy text as a placeholder.

example_2

  1. Now that we have a description, add another H2 header titled Gallery and then put some images on the page. The band images are locatated in assets/images.

example_3

  1. Notice how the images are too large? We can use the height and width attributes within the image tag to quickly resize them: height="200px" or width="400px" for example. The `px stands for pixel. Try using one or both attributes per image to resize them to something more appropriate for the page adn refresh it to see your changes. This will require some trial and error in determining what values yield the best results.

  2. Now we need a section for the band's shop. Add another <h2> tag with the text content set to Shop. Then create a <p> tag with a nested <a> tag within like in the screenshot. This is how we can create links within paragraphs. The # in the href is used as a placeholder when the destination of a hyperlink is not yet known. Since this is the main page, the store page is not yet complete so there is nothing to link to just yet.

example_4


Solution codebase 👀

🛑 Only use this as a reference 🛑

💾 Not something to copy and paste 💾

Note: This lab references a solution file located here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%