Assignment 3B — My Favorite Superheroes⌗

Instructor: Laksh Budhrani


Quick Recall: HTML Tags & CSS Properties⌗

HTML Tags⌗

TagWhat It Does
<div>Groups larger sections of content
<span>Groups a small part of text

CSS Properties⌗

Property / ConceptWhat It Does
background-colorChanges the background color
font-familyChanges the font
colorChanges the text color
font-sizeChanges the text size
text-alignAligns text horizontally
text-decorationAdds or removes decorative lines
widthControls the width of an element
heightControls the height of an element
borderAdds an outline around an element
paddingAdds space inside the border
marginAdds space outside the border
display: inline-blockPlaces elements next to each other
Class selector (.card)Selects elements assigned to a particular class

Your Mission — My Favorite Superheroes!⌗

Who are your favorite superheroes?

Choose THREE or more superheroes and create a webpage showcasing them!

Your webpage should include:

  • The name of each superhero.
  • An image of each superhero.
  • A short description of each superhero.
  • A separate Featured Superhero section highlighting one of your favorites.

You can choose superheroes from Marvel, DC, anime, or any other fictional universe!

Example Output⌗

My Favorite Superheroes Website Example


CSS Requirements⌗

Your webpage must meet the following requirements:

  1. Create at least three superhero cards using separate <div> elements.
  2. Assign the same class to all superhero cards and style them using a class selector.
  3. Use display: inline-block to arrange the superhero cards next to each other.
  4. Create a separate class selector for your Featured Superhero section.
  5. Use width, height, background-color, border, padding, and margin to style your webpage.
  6. Use appropriate colors, fonts, and text styling to make your webpage attractive.

Final Checklist⌗

Before submitting, make sure you have completed everything!

  • My webpage showcases at least three superheroes.
  • Each superhero has a name, image, and short description.
  • I have used the same class selector for all superhero cards.
  • I have used display: inline-block to arrange the cards.
  • I have created a separate class for the Featured Superhero section.
  • I have used the required CSS properties.
  • My webpage is neat, attractive, and easy to read.

Submission Instructions⌗

  1. Save your HTML file as assignment_3b.html.
  2. Paste your complete HTML and CSS code into a Google Doc.
  3. Add a screenshot of your completed webpage.
  4. Submit your Google Doc in Google Classroom under Assignment 3B — My Favorite Superheroes.

Have fun creating your superhero webpage!