Font size
  • A-
  • A
  • A+
Site color
  • R
  • A
  • A
  • A
Skip to main content
If you continue browsing this website, you agree to our policies:
  • Data Privacy Consent Form
Continue
x
PSHS-MC KHub
  • Home
  • Course search
  • More
You are currently using guest access
Log in
PSHS-MC KHub
Home Course search
Expand all Collapse all

1st Non-Graded Exercise

  1. G9 Courses
  2. SY25.CS3
  3. CSS (From 1st Qtr)
  4. 1st Non-Graded Exercise
Completion requirements
Make a submission
Receive a grade
Due: Friday, 17 October 2025, 5:00 PM
This is a quick and simple practice non-graded exercise on applying basic CSS using basic selectors. 

Follow the instructions below:

  1. In your portfolio, create Q21NGSectionLastName.html and place the sample code below.
  2. Edit the CSS style rule by changing xxx with the right selector to achieve the desired layout and design of the page as shown also below.
  3. Edit your index.html to include a link to this non-graded exercise.
  4. Submit your GitHub repository link and also your GitHub live server link.  Please do not submit a link that starts with 127.0.0.1 or localhost, I will not be able to check you work
Reminder: Your work should be your own, if you used an AI to do this exercise or had referred to resource online or even offline please do a proper citation as part of your web page (client facing)

See Guide on how to do: APA Citation: https://libguides.csudh.edu/citation/apa-7
Citing AI resource: (OpenAI, personal communication, January 16, 2023).


<!DOCTYPE html>
<html>
<head>
    <title>Simple Selectors</title>
    <style>
        /* all h2 elements */
        xxx {
         color: red;
         text-align: center;
        }
       
        /* all with class="highlight" */
        xxx {
         font-size: 20px;
         font-weight: bold;
         font-style: italic;
         background-color: green;
         opacity: 0.6;
        }
       
        /* element with id="mainPoint" */
        xxx {
         font-size: 24px;
         font-weight: bold;
         background-color: red;
         opacity: 0.7;
        }
       
        /* all p AND h1 elements */
        xxx {
         color: blue;
         text-align: center;
        }
    </style>
</head>
<body>
    <h1>Simple Selectors (h1)</h1>

    <h2>Subheading 1 (h2)</h2>
    
    <p class="highlight">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Possimus amet alias est? Nobis cum quasi at soluta odit,
    maiores quaerat dolores expedita ex nemo ea repellendus dolorem sed maxime quos?</p>
    
    <p class="highlight">Paragraph with attribute class="highlight".  Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p>
    
    <h2>Subheading 2 (h2)</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi nemo ipsum dolores vel modi magnam veniam alias at nam. Voluptatem officiis
    dolor dolorem aspernatur dolorum modi ipsa, nobis animi aut!</p>
    
    <div>This is the main point of the entire article. So, attribute <span id="mainPoint">id="mainPoint".</span>
    </div>
</body>
</html>


Expected output as shown below:


Previous activity CSS Properties
Next activity CSS Box Model

Contact us

Follow us

You are currently using guest access (Log in)
Data retention summary
Policies
Powered by Moodle

This theme was developed by

Conecti.me
Moodle Appliance - Powered by TurnKey Linux