TVL Comprog11 Q2 M5
TVL Comprog11 Q2 M5
Technical Vocational
Livelihood
QUARTER
2 Computer Programming
Republic Act 8293, section 176 states that: No copyright shall subsist in
any work of the Government of the Philippines. However, prior approval of the
government agency or office wherein the work is created shall be necessary for
exploitation of such work for profit. Such agency or office may, among other things,
impose as a condition the payment of royalties.
Quarter 2
Self Learning Module 5
CSS Pagination
Writer: Jenessy Joy T. Pinga
Editors: Ma. Lerma I. Cantanero
Validator/Reviewer: Rowena O. Dimagiba
Introductory Message
Welcome to the Computer Programming for the ICT Module on CSS Pagination!
This module was collaboratively designed, developed and reviewed by educators from
Schools Division Office of Pasig City headed by its Officer-In-Charge Schools Division
Superintendent, Ma. Evalou Concepcion A. Agustin in partnership with the Local
Government of Pasig through its mayor, Honorable Victor Ma. Regis N. Sotto.
The writers utilized the standards set by the K to 12 Curriculum using the Most
Essential Learning Competencies (MELC) while overcoming their personal, social,
and economic constraints in schooling.
This learning material hopes to engage the learners into guided and independent
learning activities at their own pace and time. Further, this also aims to help learners
acquire the needed 21st century skills especially the 5 Cs namely: Communication,
Collaboration, Creativity, Critical Thinking and Character while taking into
consideration their needs and circumstances.
In addition to the material in the main text, you will also see this box in the body of
the module:
As a facilitator you are expected to orient the learners on how to use this module.
You also need to keep track of the learners' progress while allowing them to manage
their own learning. Moreover, you are expected to encourage and assist the learners
as they do the tasks included in the module.
For the Learner:
Welcome to the Computer Programming for the ICT Module on CSS Pagination!
The hand is one of the most symbolized part of the human body. It is often used to
depict skill, action and purpose. Through our hands we may learn, create and
accomplish. Hence, the hand in this learning resource signifies that you as a learner
is capable and empowered to successfully achieve the relevant competencies and
skills at your own pace and time. Your academic success lies in your own hands!
This module was designed to provide you with fun and meaningful opportunities for
guided and independent learning at your own pace and time. You will be enabled to
process the contents of the learning material while being an active learner.
Lesson- This section will discuss the topic for this module.
Post-test - This will measure how much you have learned from
the entire module. Ito po ang parts ng module.
EXPECTATION
PRE–TEST
• background-color
• font-size
• Padding
• border-radius
• Border
• transition-duration
• box-shadow
• cursor
• Width
• display: block
• float: left
LESSON
CSS Pagination
Pagination is the process of distributing a document into separate pages.
Example:
<!DOCTYPE html>
<html>
<head>
<style>
.pagination {
display: inline-block;}
.pagination a {
color: black;
float: left;
padding: 10px 20px;
text-decoration: none;}
</style>
</head>
<body>
<div class="pagination">
<a href=”…”>«</a>
<a href=”…”>1</a>
<a href=”…”>2</a>
<a href=”…”>3</a>
<a href=”…”>»</a>
</div>
</body>
</html>
« this means a sign of << while » means a sign of >>.
It highlight the current page with an .active class, and use the :hover
selector to change the color of each page link when pointing them.
Example:
.pagination a.active {
background-color: black;
color: white;}
.pagination a:hover:not(.active) {background-color: yellow;}
In this example page 2 with black background is the current page while page
3 with yellow background is where the cursor or mouse is pointing.
Example:
.pagination a.active {
background-color: black;
color: white;
border-radius: 10px;}
.pagination a:hover:not(.active) {
background-color: yellow;
border-radius: 10px;}
Example:
.pagination a {
color: black;
float: left;
padding: 10px 20px;
text-decoration: none;
border: 1px solid black;}
.pagination a.active {
background-color: black;
color: white;
border: 1px solid yellow;}
.pagination a:hover:not(.active) {background-color: yellow;}
Rounded Borders
Example:
.pagination a:first-child {
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;}
.pagination a:last-child {
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;}
Example:
.pagination a {
color: black;
float: left;
padding: 10px 20px;
text-decoration: none;
border: 1px solid black;
margin: 0 2px;}
Pagination Size
Example:
.pagination a {
color: black;
float: left;
padding: 8px 16px;
text-decoration: none;
border: 1px solid black;
font-size: 30px;}
To center the pagination, wrap a container element like <div> around it with
text-align:center.
Example:
.center {
text-align: center;}
ACTIVITIES
1. 3 pages or more.
• background-color
• text-align
• Padding
• border-radius
• color
• float
• padding
• text-decoration
• border
• margin
Rubrics:
Needs work Developing Meets Standard Score
Information is not Information is The content has
always clear or clear and correct. accurate and
correct. The The theme or useful information.
theme or main main idea of the The theme or main
idea of the Web Web page is more idea of the Web
Content page is more or or less clear and page is clear and
(Good content less clear but related to the related to the
should be relevant) does not relate to purpose or theme purpose or theme
the purpose or of the project of the project.
theme of the
project.
15 20 25
Background, text Background, text Background, text
format and color format and color format, and color
usage are usage are usage are carefully
randomly chosen somewhat chosen to produce
Visual Design with few consistent with a consistent screen
(Appearance) consistent little layout for all your
elements inappropriate pages
throughout. variation.
15 20 25
Site is difficult to Site is sometimes Readers can get
Structure and
navigate. difficult to around your
Navigation
navigate. website with ease.
(Good navigation
gets you where you
want to go quickly)
15 20 25
Innovation Website has no Some of the page Website has a
(The idea is new, or unique style. has unique style. unique style.
merely iterating on
a previous idea) 15 20 25
Total /100
*Answer the Worksheet number 5 and submit a soft copy/hard copy of your
completed activity to your subject teacher on the following meeting.
WRAP–UP
DIRECTIONS: Based on how you understood the lesson, describe the use of
pagination.
___________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
__________________________________________________________________________________
VALUING
2. How will you use the knowledge you acquired in this module?
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
POST TEST
Pre-test: Post-test:
REFERENCES
• Accessed September 18, 2020 11:00Am https://www.w3schools.com
• Accessed September 18, 2020 1:30pm https://www.tutorialrepublic.com
• Accessed September 18, 2020 2:00pm Whatis.techtarget.com