Reporttt 2
Reporttt 2
Reporttt 2
e Blog
---
---
*Submitted to: *
---
*Project Duration: *
27/06/2024 – 10/07/2024
---
Submission Date:
14/08/2024
---
Location:
1
---
*Chapter 1: Introduction*
1.3 *Objectives*
2
- To learn and apply best practices in HTML and CSS.
---
3
- *About Page:* Provided information about the blog's purpose, the
author, and the topics covered.
The CSS was designed to provide a consistent look and feel across all
pages. Techniques such as Flexbox and Grid were used to ensure a
responsive layout. Colors, typography, and spacing were carefully
chosen to create a professional appearance.
One of the main challenges was ensuring that the website was fully
responsive across different screen sizes. This was addressed by using
media queries and responsive units like percentages and em/rem for
spacing and font sizes. Another challenge was optimizing the website
for faster load times, which involved minimizing the use of large images
and unnecessary CSS styles.
4
---
During this project, I gained hands-on experience with HTML and CSS,
particularly in structuring web pages and applying styles to create
visually appealing designs. I also learned about responsive design
principles and how to use media queries to ensure the website looks
good on all devices. Additionally, I developed skills in:
5
- *Time Management:* Balancing the different phases of the project to
meet deadlines.
The key takeaway from this project was the importance of planning and
designing before coding. Creating wireframes and style guides helped
streamline the development process and avoid potential issues later
on. I also learned that web development is an iterative process,
requiring continuous testing and refinement.
---
6
*Chapter 4: Sample Code and Explanation*
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<title>My Blog</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<main>
<section class="hero">
<h1>Welcome to My Blog</h1>
<p>Your go-to place for the latest articles.</p>
</section>
</main>
<footer>
<p>© 2024 My Blog</p>
</footer>
</body>
7
</html>
*Explanation:*
This code sets up the basic structure of the blog's homepage. It includes
a navigation menu, a hero section with a welcoming message, and a
footer. The use of semantic HTML elements ensures that the page is
well-structured and accessible.
css
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
line-height: 1.6;
background-color: #f4f4f4;
}
header {
background: #333;
color: #fff;
padding: 10px 0;
}
nav ul {
list-style: none;
display: flex;
justify-content: center;
}
8
nav ul li {
margin: 0 20px;
}
nav ul li a {
color: #fff;
text-decoration: none;
font-weight: bold;
}
.hero {
background: url('hero-image.jpg') no-repeat center center/cover;
height: 400px;
color: #fff;
text-align: center;
padding-top: 150px;
}
*Explanation:*
This CSS code styles the homepage to give it a professional look. The
navigation menu is centered and styled with a dark background, while
the hero section features a full-width background image and centered
text.
---
9
*Chapter 5: Testing and Debugging*
10
- *Slow Load Times:* Improved by optimizing images and using efficient
CSS selectors.
---
After the initial launch, user feedback was gathered to identify areas for
improvement. Based on the feedback, the following changes were
made:
11
Output of project
12
Understand the basics of HTML
13
CSS: Styling the web
14
FEEDBACK page:
15
*Chapter 7: Conclusion*
Looking ahead, there are several areas where the project could be
expanded or improved:
16
- *Dynamic Content:* Integrating a content management system (CMS)
to allow for easier content updates.
17