Professional Documents
Culture Documents
MODULE 3:
CASCADING STYLE SHEET PROPERTIES, COMMONLY USED
INTERNET TERMS, PARTS OF WEB ADDRESS, AND THE LAYOUT OF A
WEB PAGE
INTRODUCTION AND FOCUS QUESTION:
Cascading Style Sheets offer a better way of managing the site in terms of
presentation. A style sheet is a collection of style rules that define how HTML elements are
presented. It provides a standard way to layout, style, color, and control websites’
presentation. It may be inline, internal, or external.
In the previous module, you have been introduced to Cascading Style Sheets and to
the different properties like background, text, font, and border and outline, so, you are
already familiar to what is being said earlier. Other than the said properties, are you ever
curious about the other properties that you can use to layout a web page?
In this module, you will encounter the other Cascading Style Sheet properties that
will improve your own web page. In addition, after knowing how a web page is designed,
you will be also studying the parts of web address and the layout of a web page.
Page 2|19
Information and Communications Technology 10 | Quarter 3
TAYABAS WESTERN ACADEMY
Founded 1928 | Recognized by the Government | Candelaria, Quezon 4323
CONCEPT MAP
Here is a simple map of the lessons that will be covered in this module.
Margin
Padding
Cascading Style Positioning
Sheet Properties Shorthand
Properties
THIRD
QUARTER’S
LESSONS
Under the
commonly used
Internet terms,
various terms,
Commonly Used
web address
Internet Terms
and its parts,
and the layout of
the web page
will be discussed
Page 3|19
Information and Communications Technology 10 | Quarter 3
TAYABAS WESTERN ACADEMY
Founded 1928 | Recognized by the Government | Candelaria, Quezon 4323
Helpful Tips!
To do well in this module, you need to remember and do the following:
1. Read carefully the module and do the activities neatly and accurately.
3. If you are having problems, do NOT wait to request help. The longer you wait the
bigger the problem becomes!
EXPLORE
Page 4|19
Information and Communications Technology 10 | Quarter 3
TAYABAS WESTERN ACADEMY
Founded 1928 | Recognized by the Government | Candelaria, Quezon 4323
Questions to Answer:
1. What do you see on the picture?
2. What do you think is the web page all about?
3. What makes you wonder regarding the web page layout?
Are you curious about how that previous web page was done? Read and study the
following lesson about it. Good luck!
FIRM UP
Properties
Properties are also called as attributes and vice versa. Other programming or scripting
languages use both to refer to the same thing but some use one term officially. In HTML and
CSS, an attribute refers to the properties that are immediately set or altered inside an opening
tag while a property is also an attribute but maybe set or altered only through special means
or coding.
In setting some CSS properties, you may be required to indicate a unit. Let us recall the
following units that can be used in the next activities:
UNITS USED IN
CSS DESCRIPTIONS
PROPERTIES
px pixel
% percentage
in inch
cm centimeter
mm millimeter
em/1em current font size, 2em - twice the current font size
1 ex - approximately half of the current font size or the height
ex
of a lowercase letter
pt point (1/72 inch)
pc pica (1 pc = 12 pt)
A. Margin Properties
They can be used to define the margins of an HTML element.
Example: p {margin-left: 50px;}
The example above sets the text in all paragraph elements to be displayed
having a left margin of 50 pixels.
The following properties are used to define the margins in an HTML element:
Page 5|19
Information and Communications Technology 10 | Quarter 3
TAYABAS WESTERN ACADEMY
Founded 1928 | Recognized by the Government | Candelaria, Quezon 4323
B. Padding Properties
They can be used to define the space between the border and content in an HTML
element.
Example: p {padding-left: 5px;}
The example above sets the text in all paragraph elements to be displayed with a
left padding of 5 pixels.
The following properties are used to define the padding in an HTML document:
PROPERTY DESCRIPTION VALUES
C. Positioning Properties
They can be used to define how an HTML element is positioned in the page or in
another element.
Example:p.box {width: 100px; height: 100px; overflow: scroll;}
The given example sets all paragraph elements that use the box class to use
scroll-bars if the content goes over the dimension.
The following properties are used to set the positioning of an HTML element:
PROPERTY DESCRIPTION VALUES
cursor sets the cursor to auto (default)
be displayed when text wait help
the mouse pointer crosshair
moves over the pointer move
element ne-resize
nw-resize
n-resize
se-resize
sw-resize
s-resize
w-resize
Ex. ___________
Page 6|19
Information and Communications Technology 10 | Quarter 3
TAYABAS WESTERN ACADEMY
Founded 1928 | Recognized by the Government | Candelaria, Quezon 4323
background-image (images/background.gif)
background-repeat (no-repeat)
background-attachment (fixed)
The following shorthand properties may be used to perform multiple definitions:
PROPERTY DESCRIPTION
Page 7|19
Information and Communications Technology 10 | Quarter 3
TAYABAS WESTERN ACADEMY
Founded 1928 | Recognized by the Government | Candelaria, Quezon 4323
Page 8|19
Information and Communications Technology 10 | Quarter 3
TAYABAS WESTERN ACADEMY
Founded 1928 | Recognized by the Government | Candelaria, Quezon 4323
Process Questions:
The HTML document above is about the steps on assembling a personal computer
system unit. The parts of a system unit are stated as well as the ways to assemble it. As you
can see, various properties and values as well as global attributes are used in the document.
The new properties and values learned such as the margin, padding, and positioning
properties are applied. Below, look at how the HTML document on the previous page will look
like after saving it as a web page.
Remember: There are so many properties and values that can be used in creating a web
page. You can explore the new properties and values on your own to discover their real
appearance on the web page. Explore and apply. Discover. Learn.
Activity 2. “Identification”
Identify the missing property or value on each item to complete the declaration
structure. If the the missing value is a number using unit, just write your preferred
measurement to the property. Do this on 1/2 sheet of paper crosswise.
1. _____________: pointer; 6. _____________:wait;
2. _____________: visible; 7. margin-left: _____________;
3. padding-top: _____________; 8. clear: _____________;
4. position: _____________; 9. _____________: help;
5. float: _____________; 10. visibility: _____________;
In this part of the lesson, you will work on different activities after learning
the other Cascading Style Sheet properties that you can use in designing a
web page.
DEEPEN
Page 9|19
Information and Communications Technology 10 | Quarter 3
TAYABAS WESTERN ACADEMY
Founded 1928 | Recognized by the Government | Candelaria, Quezon 4323
Page 10|19
Information and Communications Technology 10 | Quarter 3