thecodezone.
The Code Zone

PROJECT WORKSHOP / INTRO TO HTML & CSS · STEP 1 OF 24

Build a Pokémon Search Card

GUIDED PRACTICE

Build a Pokémon Search Card

Build this part of your search card, then use Run & check this step below the editor. A passing check unlocks the next step.

Your code stays in one editor through every step. Word wrap is enabled.

Step 1 of 24

Give your project a home

HTML describes the content on a page. A main element marks its main content. A class is a reusable name that CSS and our supplied search helper can find. Select index.html to start.

Your task

Build this part of your search card, then use Run & check this step below the editor. A passing check unlocks the next step.

To pass this step:

  • In index.html, replace the comment inside the body with a main element.
  • Give the main element the class container.
  • Include its closing tag and leave room between the tags for your project.
  • Keep the document shell and the link to styles.css.

Press the play button labeled Run & check this step below the editor to run your code and see your check results.

A hint for this step

A main element needs an opening tag and a closing tag. Put the class on the opening tag: <main class="container"></main>. Add new content between those tags.

Your editor is opening.

Each step builds on the last. Finish the current step before opening the next one; your code stays with you.

Code and completed steps save in this browser when signed out. Sign in to save across devices.

Ready to checkRun the checks to see your results here.

Replace your editor code?

Your current work will be replaced. Choose Cancel to keep it.

Step 25: Export your project

You built it. Keep experimenting and share what you made.

  • Choose Open in CodePen to copy your current HTML and CSS plus the supplied JavaScript into a new tab.
  • Search for squirtle or charizard and check that the card updates.
  • Sign in to your own CodePen account and choose Save to keep your Pen.
  • Copy your saved Pen’s link when you want to share it with the community.

The JavaScript behavior is supplied for you. In this workshop, you practice HTML and CSS. The JavaScript is included in your exported project so the interactive behavior still works.

This optional export adds a removable HTML comment linking to this workshop. It sends your code to CodePen only when you choose the button. Saved public Pens can be viewed by others. Later CodePen edits do not sync back here, and your Code Zone progress stays separate.