Creation of website using HTML5 and CSS.

Create a webpage as given layout use <nav>,<header>,<footer>,<aside>,<article> with CSS.


Creation of website using HTML5 and CSS.


Here is a Html Code:- 

<!DOCTYPE html>

<html>

  <head>

    <title>My Webpage</title>

    <link rel=”stylesheet” href=”style.css”>

  </head>

  <body>

    <header>

      <h1>Welcome to my webpage</h1>

      <nav>

        <ul>

          <li><a href=”#”>Home</a></li>

          <li><a href=”#”>About</a></li>

          <li><a href=”#”>Contact</a></li>

        </ul>

      </nav>

    </header>

    <section>

      <aside>

        <h2>About me</h2>

        <p>I am a web developer who loves creating beautiful and functional websites.</p>

      </aside>

      <article>

        <h2>Welcome to my webpage</h2>

        <p>Thank you for visiting my webpage. Here, you will find information about my work, my skills, and my experiences as a web developer. Please feel free to explore and get in touch if you have any questions or would like to work with me.</p>

      </article>

    </section>

    <footer>

      <p>&copy; 2023 My Webpage. All rights reserved.</p>

    </footer>

  </body>

</html>



Here is css code:- 


body {

  font-family: Arial, sans-serif;

  margin: 0;

  padding: 0;

}


header {

  background-color: #333;

  color: #fff;

  padding: 10px;

}


nav ul {

  margin: 0;

  padding: 0;

  list-style: none;

}


nav ul li {

  display: inline-block;

  margin-right: 20px;

}


nav ul li a {

  color: #fff;

  text-decoration: none;

}


section {

  display: flex;

  flex-wrap: wrap;

  padding: 10px;

}


aside {

  flex-basis: 20%;

  background-color: #f2f2f2;

  padding: 10px;

}


article {

  flex-basis: 70%;

  padding: 10px;

}


footer {

  background-color: #333;

  color: #fff;

  padding: 10px;

  text-align: center;

}



Leave a Comment