Assignments Of Class 20: Project - Building a Personal Web Page

Rashmi Mishra
0

Assignments  Of Class 20: Project - Building a Personal Web Page

Assignment 1: Create a Basic Web Page Layout

Task:

Create a simple web page layout with a header, footer, and a navigation bar with links to different sections.

Solution:

1.   Create a new HTML file named index.html.

2.   Structure the HTML file with the basic layout (header, footer, and navigation links).

html
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Personal Web Page</title>
</head>
<body>
 
    <!-- Header Section -->
    <header>
        <h1>Your Name</h1>
        <nav>
            <ul>
                <li><a href="#about">About Me</a></li>
                <li><a href="#skills">Skills</a></li>
                <li><a href="#contact">Contact</a></li>
            </ul>
        </nav>
    </header>
 
    <!-- Footer Section -->
    <footer>
        <p>&copy; 2024 Your Name. All rights reserved.</p>
    </footer>
 
</body>
</html>

Explanation:

  • <header>: Contains the page title and the navigation links.
  • <footer>: Displays a copyright message.

Assignment 2: Add an About Me Section

Task:

Add a section titled "About Me" that includes a short paragraph about yourself.

Solution:

1.   Inside your index.html, add a new section with the ID about.

html
<section id="about">
    <h2>About Me</h2>
    <p>Hello! My name is [Your Name]. I am a passionate web developer with an interest in building creative web applications.</p>
</section>

Explanation:

  • <section id="about">: Defines the About Me section.
  • <h2>: Adds a heading for the section.
  • <p>: Adds a paragraph of text about yourself.

Assignment 3: Add Skills List

Task:

Create a section where you list your skills using an unordered list.

Solution:

1.   Add a new section for "Skills" in the HTML file.

html
<section id="skills">
    <h2>Skills</h2>
    <ul>
        <li>HTML</li>
        <li>CSS</li>
        <li>JavaScript</li>
    </ul>
</section>

Explanation:

  • <ul>: Creates an unordered list.
  • <li>: Each list item represents a skill.

Assignment 4: Add a Portfolio Section

Task:

Create a portfolio section that includes a few project links or images with descriptions.

Solution:

1.   Create a new section called "Portfolio" and add sample project details.

html
<section id="portfolio">
    <h2>Portfolio</h2>
    <p>Here are some of my previous projects:</p>
    <ul>
        <li><a href="#">Project 1 - Personal Blog</a></li>
        <li><a href="#">Project 2 - E-Commerce Website</a></li>
    </ul>
</section>

Explanation:

  • <a>: Each project link uses the anchor tag <a> to link to a project.

Assignment 5: Style the Header Section

Task:

Use inline CSS to style the header section, giving it a background color and making the text white.

Solution:

1.   Inside the <head> tag, add a <style> block:

html
<style>
    header {
        background-color: #333;
        color: white;
        text-align: center;
        padding: 10px;
    }
    nav ul {
        list-style: none;
        padding: 0;
    }
    nav ul li {
        display: inline;
        margin-right: 10px;
    }
    nav ul li a {
        color: white;
        text-decoration: none;
    }
</style>

Explanation:

  • header styling: Sets a background color and text color for the header.
  • nav ul: Removes the bullet points from the navigation list.
  • nav ul li a: Styles the links inside the navigation to be white and removes the underline.

Assignment 6: Add a Contact Section with Email Link

Task:

Add a contact section with your email address as a clickable mailto link.

Solution:

1.   Add a "Contact" section with an email link.

html
<section id="contact">
    <h2>Contact</h2>
    <p>Email me at: <a href="mailto:your.email@example.com">your.email@example.com</a></p>
</section>

Explanation:

  • <a href="mailto:">: Creates a clickable email link that opens the default email client.

Assignment 7: Add an Image to the About Me Section

Task:

Add an image of yourself or a placeholder image to the "About Me" section.

Solution:

1.   Add an <img> tag inside the About Me section:

html
<section id="about">
    <h2>About Me</h2>
    <img src="your-image.jpg" alt="Your Name" width="200">
    <p>Hello! My name is [Your Name]. I am a passionate web developer...</p>
</section>

Explanation:

  • <img src="your-image.jpg" alt="Your Name">: Displays an image with a specified width and an alt attribute for accessibility.

Assignment 8: Use External CSS to Style the Web Page

Task:

Create an external CSS file to style the entire web page, separating the content and presentation.

Solution:

1.   Create a new file named styles.css and add CSS to style the page.

2.   Link the external CSS file in the <head> of your HTML.

html
<link rel="stylesheet" href="styles.css">
css
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}
header {
    background-color: #444;
    color: white;
    padding: 20px;
}
footer {
    text-align: center;
    padding: 10px;
    background-color: #444;
    color: white;
}

Explanation:

  • The external CSS file separates styling from content, which is good practice for maintainability.
  • <link>: Links the external CSS file to the HTML document.

Assignment 9: Add a Social Media Links Section

Task:

Create a section at the bottom of your web page with links to your social media profiles (e.g., LinkedIn, GitHub).

Solution:

1.   Add a new "Social Media" section with links to your profiles.

html
<section id="social">
    <h2>Connect with Me</h2>
    <ul>
        <li><a href="https://linkedin.com/in/yourprofile">LinkedIn</a></li>
        <li><a href="https://github.com/yourusername">GitHub</a></li>
    </ul>
</section>

Explanation:

  • <ul>: Creates an unordered list for the social media links.
  • <a>: Links to external social media profiles.

Assignment 10: Implement a Simple Footer with Copyright Information

Task:

Create a footer at the bottom of your page that displays copyright information and links to your privacy policy or terms.

Solution:

1.   Add a footer section.

html
<footer>
    <p>&copy; 2024 Your Name. All rights reserved.</p>
    <p><a href="#">Privacy Policy</a> | <a href="#">Terms of Service</a></p>
</footer>

Explanation:

  • <footer>: Wraps the footer content.
  • <p>: Paragraphs for the copyright and links to the privacy policy and terms of service.

These assignments build up the structure of a personal web page step by step, starting from basic layout creation and gradually incorporating more complex features like linking, images, and styling.

You said:

WRITE 50 no of MCQs only FROM ABOVE CONCEPT with explanation

ChatGPT said:

ChatGPT

Post a Comment

0Comments

Post a Comment (0)