Self-paced

Explore our extensive collection of courses designed to help you master various subjects and skills. Whether you're a beginner or an advanced learner, there's something here for everyone.

Bootcamp

Learn live

Join us for our free workshops, webinars, and other events to learn more about our programs and get started on your journey to becoming a developer.

Upcoming live events

Learning library

For all the self-taught geeks out there, here is our content library with most of the learning materials we have produced throughout the years.

It makes sense to start learning by reading and watching videos about fundamentals and how things work.

Search from all Lessons


LoginGet Started

Register to 4Geeks

← Back to Projects

Product Page in plain HTML/CSS

Difficulty

  • easy

Average duration

4 hrs

Technologies

  • Layouts

  • Flex Box

  • HTML and CSS

  • CSS Grid

Difficulty

  • easy

Average duration

4 hrs

Technologies

Build a Product Landing Page with Plain HTML/CSS

Build a Product Landing Page with Plain HTML/CSS

Product Landing Page Exercise for HTML/CSS

Doing layouts is one of the most difficult things in CSS/HTML, but it has never been a good technology for that purpose, which is weird and sad because it's its main focus. 🤔🤪

But in the past couple of years everything has been improving, since 2018 we can use now the CSS rules display: flex; and display: grid;.

There are also some CSS frameworks like Bootstrap that is broadly used in ~30% of the world websites., Foundation, Material UI, etc. But this exercise is focused mainly on polishing your plain CSS/HTML skills.

📝 Instructions

  1. Replicate this exact product page in HTML/CSS. You cannot use any CSS framework and the landing does not have to be responsive.
  2. Use the images on the ./assets folder.
  3. Use the flex-box CSS rules, here is a great document explaining about it: https://css-tricks.com/snippets/css/a-guide-to-flexbox/

🌱 How to start this project

This project comes with the necessary files to start working, but you have two options to start:

b) You can clone this repository on your local computer:

1$ git clone https://github.com/breatheco-de/exercise-product-landing-page-plain-css.git

Make sure that you have node.js installed in your computer and run the following command on your terminal to preview your website:

1npx --yes http-server -c-1

💡 Important: Remember to create a new repository, update the remote (git remote set-url origin <your new url>), and upload the code to your new repository using add, commit and push.

Note: you will have to refresh your browser every time you update your code.

🥵 No one tells you this:

  • 40% of the errors when doing HTML are missing or misplaced closing tags, to avoid that you should open a close the tag at the same time and then you fill the tag content.

  • Picking the names of the CSS classes is the real trick: The names of the classes shape your mindset. Instead of using business-oriented naming like product1, product2, about-us, etc. You should use behavior-oriented names like menu or horizontal-list, etc. That will help you re-use classes a lot.

  • Don't use the <img> for images that will be uploaded later by a user, you should instead use <div> with background images, the image tag is only used for little things.

Signup and get access to similar projects

We will use it to give you access to your account.
Already have an account? Login here.

By signing up, you agree to the Terms and conditions and Privacy policy.

Difficulty

  • easy

Average duration

4 hrs

Technologies

Difficulty

  • easy

Average duration

4 hrs

Technologies

Difficulty

  • easy

Average duration

4 hrs

Technologies

Difficulty

  • easy

Average duration

4 hrs

Technologies

Signup and get access to similar projects

We will use it to give you access to your account.
Already have an account? Login here.

By signing up, you agree to the Terms and conditions and Privacy policy.

Difficulty

  • easy

Average duration

4 hrs

Technologies

Difficulty

  • easy

Average duration

4 hrs

Technologies

Supplementary Material

In order to prepare better for completing this exercises, we suggest the following materials

Lesson

CSS Layouts: Create and Build Layouts with CSS

Lesson

What is HTML? It's time to learn HTML and its structure

Exercise

Learn the basics of HTML Interactively

Exercise

Learn CSS with Interactive Exercises