pramendra316 / animal-trading-card

Lab 1, Lesson 10: Animal Trading Card

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Animal Trading Cards

Implement a web page using HTML & CSS

Task

Use what you learned about HTML and CSS to convert an initial design into a functional web page!

Key Takeaways

  • HTML is used to structure your site
  • CSS is used for styling

Instructions

You will be provided with the following files:

  • card.html
  • styles.css
  • placeholder.png
  • design-prototype.jpg

Required Changes

Make the following changes to card.html

  1. Change the heading to the name of your favorite animal
  2. Replace the placeholder image with your favorite animal's image.

Also, change the image's alt attribute to the name of your animal. So, alt="name-of-your-animal" should be replaced with the actual name of your animal.

Note: You will want to use an image with a width of 300 pixels. If your image is larger, you can set the image's width to 300 pixels in your CSS, but be aware that your image might end up squished or distorted. Later, we’ll talk about how you can fix this problem using responsive images.

  1. Edit the interesting fact paragraph
  2. Edit the key characteristics
  3. Edit the informational paragraph

Style the Page

Try to recreate the design-prototype.jpg.

You’ll need to modify card.html to include attributes and use selectors to specify the elements you want to style.

The CSS must apply these styles to match the design prototype:

  1. link your stylesheet styles.css to the HTML or else your CSS will not be applied.
  2. give the interesting facts <div> a CSS class of animal-info
  3. italicize the text for the animal's interesting fact
  4. bold the labels for the animal's list items (e.g. 'Habitat')
  5. remove dots from the animal's list items
  6. add a border around the animal's name, image, and information
  7. add a border around the animal's information
  8. add spacing between the animal's name, image, and information (you will need to use the property padding)

About

Lab 1, Lesson 10: Animal Trading Card


Languages

Language:HTML 61.5%Language:CSS 38.5%