"If a worker wants to do his job well, he must first sharpen his tools." - Confucius, "The Analects of Confucius. Lu Linggong"
Front page > Programming > Day HTML

Day HTML

Published on 2024-08-23
Browse:895

Day  HTML

Today, I built a website
Putting together the cumulative knowledge from the last 5 days, I built a functional recipe book site, with a touch of CSS for styling.

Link to site- Ofameh_Recipe_Site

HTML Block of code:


  
    My Recipe Book

Ofameh's Recipe Book

Breakfast Recipes



Catch Us on X:

© 2024 Ofameh
All rights reserved.

CSS Block of code-

  body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

header,
main,
footer {
  padding: 20px;
  margin: 10px;
}

header {
  background-color: black;
  color: white;
  text-align: center;
}

nav ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  justify-content: space-around;
}

nav ul li {
  margin: 0 10px;
}

section {
  margin-bottom: 20px;
}

article {
  border: 1px solid #ccc;
  padding: 10px;
  margin: 10px 0;
}

img {
  max-width: 100%;
  height: auto;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px 0;
}

button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  color: black;
  border: none;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background-color: #ccc;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
  background-color: black;
  transform: translateY(-2px);
  color: white;
} 

Putting together all I have learnt so far on day 5 to build this has been fulfilling to me because the whole point of this exercise is project-based learning.
So actually doing this for 5 days and being able to build a site as good as that means a lot to me

That being said, Days 6 - 10 will feature what I call websites for days, here each day I will build a site which will progressively get harder and more complex.
Be there!

Release Statement This article is reproduced at: https://dev.to/ofameh/day-510-html-1k3j?1 If there is any infringement, please contact [email protected] to delete it
Latest tutorial More>

Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.

Copyright© 2022 湘ICP备2022001581号-3