Skip to main content
e-Disciplinas
  • Disciplinas »
    2027 2026 2025 2024 2023 2022 2021 2020 2019 2018 2017 2016 2015 2014 2013 2012 AACCs/FFLCH Pró-Reitoria de Pós-Graduação Outros
  • Suporte »
    Acesso Perfis Ouvintes Docentes Criação de Disciplinas da USP Documentação HelpDesk e Contato Guia de uso Sobre
  • English ‎(en)‎
    Deutsch ‎(de)‎ English ‎(en)‎ Español - Internacional ‎(es)‎ Français ‎(fr)‎ Italiano ‎(it)‎ Português - Brasil ‎(pt_br)‎
Site-wide search Close
Toggle search input
Acessar

SCC0219 - Introdução ao Desenvolvimento Web (2025)

  1. Home
  2. Courses
  3. 2025
  4. ICMC
  5. SCC
  6. SCC0219-2025
  7. Module 3: CSS
  8. Exercise 4: CSS

Exercise 4: CSS

Completion requirements
Opened: Wednesday, 26 March 2025, 8:00 AM
Due: Wednesday, 26 March 2025, 12:00 PM


Activity: Styling a Basic Webpage with CSS

Duration: 70 minutes

Upload one file named USPnumber1.USPnumber2.html (Add the file late.USPnumber1.USPnumber2.html if late).

Objective: Students will apply CSS selectors, properties, and values to enhance the design of a given basic HTML webpage.

Instructions:

  1. Page Structure:

    • Download the provided basic HTML webpage which includes a header, a few paragraphs, an image, and a list. You can also use the HTML file you developed to present yourself.
    • Begin by adding a general style:
      • Set a background color for the entire page.
      • Define a maximum width for the content and center it.
  2. Typography and Color:

    • Modify the text:
      • Set a base font size and line-height for the entire page.
      • Choose a font family for headers and another for body text.
      • Adjust the color and weight of the headers.
      • Add hover color changes for links.
  3. Styling Images and Lists:

    • For the image:
      • Add a border.
      • Add some shadow for a lifting effect.
      • Ensure it's responsive, shrinking with the page width.
    • For the list:
      • Add custom bullet points or numbers.
      • Adjust margins and padding for proper spacing.
  4. Feedback and Review:

    • Pair up with another student and review each other's work.
    • Offer feedback on their design choices and any improvements that could be made.

These activities are structured to ensure that students not only practice the technicalities of CSS but also think about design decisions and get feedback. By the end, they should have a good grasp on how to effectively design and layout a webpage using CSS.

HTML FILE:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Styling with CSS Activity</title>
    <!-- 
    <style>
        Put your CSS here. For now, it's commented out.
    </style>
    -->
</head>
<body>
    <header>
        <h1>Welcome to My Page</h1>
        <p>This is a brief introduction about the page.</p>
    </header>

    <main>
        <section>
            <h2>About Me</h2>
            <p>My name is Jane Doe and I'm a web developer from New York. I love creating responsive and interactive websites. In my free time, I enjoy hiking, reading, and exploring new cafes in the city.</p>
            <img src="https://via.placeholder.com/350x150" alt="A placeholder image of Jane Doe">
        </section>

        <section>
            <h2>My Favorite Books</h2>
            <ul>
                <li><a href="https://en.wikipedia.org/wiki/The_Great_Gatsby">The Great Gatsby</a> by F. Scott Fitzgerald</li>
                <li><a href="https://en.wikipedia.org/wiki/To_Kill_a_Mockingbird">To Kill a Mockingbird</a> by Harper Lee</li>
                <li><a href="https://en.wikipedia.org/wiki/Nineteen_Eighty-Four">1984</a> by George Orwell</li>
                <li><a href="https://en.wikipedia.org/wiki/Pride_and_Prejudice">Pride and Prejudice</a> by Jane Austen</li>
            </ul>
        </section>
    </main>

    <footer>
        <p>&copy; 2023 by Jane Doe. All Rights Reserved.</p>
    </footer>
</body>
</html>

This page contains:

  1. A header with a main title and introduction.
  2. A main content area with two sections:
    • An "About Me" section with a small biography and an image.
    • A section listing favorite books.
  3. A footer with a copyright notice.

The students are expected to style this using CSS as outlined in the activity. The image link is a placeholder and can be replaced by any image the students wish to use.


◄ WWW History
Exercise 5: Responsive CSS ►

Blocks

Skip Navigation
  • Home

    • e-Disciplinas

      • My courses

      • Tags

      • Search

      • PageSobre

      • PageHelp Desk e Contato

      • PageGuia

    • My courses

    • Courses

      • 2025

        • CENA

        • EACH

        • ECA

        • EE

        • EEFE

        • EEFERP

        • EEL

        • EERP

        • EESC

        • EP

        • ESALQ

        • FAU

        • FCF

        • FCFRP

        • FD

        • FDRP

        • FE

        • FEA

        • FEARP

        • FFCLRP

        • FFLCH

        • FM

        • FMBRU

        • FMRP

        • FMVZ

        • FO

        • FOB

        • FORP

        • FSP

        • FZEA

        • IAG

        • IAU

        • IB

        • ICB

        • ICMC

          • SMA

          • SME

          • 550

          • SSC

          • SCC

            • TCCs do SCC

            • SCC0211-2025

            • SCC5920--2025

            • SCC0124-201-2025

            • SCC0283-201-2025

            • SCC0271-201-2025

            • SCC0230-202-2025

            • SCC5878-2025

            • SCC0233-201-2025

            • SCC0295-201-2025

            • ED - SCC0122 - 2025

            • SCC0634-201-2025

            • SCC0245-201-2025

            • SCC0607-201-2025

            • SCC0220-201-2025

            • LabBD-SCC0641-2025

            • SCC0560-201-2025

            • SCC5836--2025

            • SCC0252-201-2025

            • SCC0219-201-2025

            • SCC0202-2025

            • SCC5977--2025

            • SCC5809--2025

            • SCC5960--2025

            • SCC5959--2025

            • SCC5952--2025

            • SCC0277-201-2025

            • SCC0218-2025

            • SCC0227/SCC0229--2025

            • SCC0505--2025

            • SCC5832--2025

            • SCC0205-202-2025

            • SCC0205-201-2025

            • SCC0502-201-2025

            • SCC0223-201-2025

            • SCC0207-2025

            • SCC0580-201-2025

            • SCC0302-2025

            • SCC5949--2025

            • SCC5982--2025

            • SCC0216-2025

            • SCC0219-2025

              • General

              • Group Assignment

              • Course Introduction

              • Module 1: HTTP Protocol

              • Module 2: HTML

              • Module 3: CSS

                • AssignmentExercise 4: CSS

              • Module 4: JavaScript

              • Module 5: DOM & Events

              • Module 6: AJAX Calls

              • Milestone 1

              • Module 7: React or Vue

              • Module 8: Node.js/ExpressJS

              • Milestone 2

              • Module 9: NoSQL Databases

              • Final Presentations

              • Final Test

          • EST

          • MAI

          • SMA

        • IEB

        • IEE

        • IF

        • IFQSC

        • IFSC

        • IGc

        • IME

        • IO

        • IP

        • IPEN

        • IQ

        • IQSC

        • IRI

        • HRAC

        • MAC

        • MAE

        • MP

        • MZ

        • RUSP

      • 2027

      • 2026

      • 2024

      • 2023

      • 2022

      • 2021

      • 2020

      • 2019

      • 2018

      • 2017

      • 2016

      • 2015

      • 2014

      • 2013

      • 2012

      • Grupos de Estudos, Pesquisa e Outros

      • PRPG - Pró-Reitoria de Pós-Graduação

      • STI

Supplementary blocks

You are currently using guest access (Log in)
Powered by Moodle