Grade 10 Module1 - CSS
Grade 10 Module1 - CSS
Quarter 1 – Module 1:
Cascading Style Sheet
Self-Learning Module
Learner’s Material
Introductory Message
2
I Need to Know
Read each sentence carefully. Select the letter of the best answer.
3
b. The external style is defined inside the <style> element, inside the head
section.
c. These are used for isolated changes to a paragraph, picture or other
element.
d. You can apply one external style sheet to unlimited number of pages.
5. What is a Syntax?
a. A set of interpretation to text that describes how it is to be structured, laid
out or formatted.
b. Style rules that are interpreted by the browser and then applied to the
corresponding elements in your document.
c. The basic units or building blocks of an HTML file or CSS code that tell
the browser how to display the text or graphics in the document.
d. Provides additional information about the tag.
9. It refers to the weight of the attribute you want to apply to the element
property.
a. Selector
b. Property
c. Value
d. Declaration block
4
10. Differentiate CSS from HTML.
______________________________________________________________
______________________________________________________________
______________________________________________________________
______________________________________________________________
Lesson
Lesson Overview
WHY CSS?
CSS saves time: You can write CSS once and reuse same sheet in multiple
HTML pages.
Easy Maintenance: To make a global change simply change the style, and all
elements in all the webpages will be updated automatically.
Search Engines: CSS is considered as clean coding technique, which means
search engines won’t have to struggle to “read” its content.
Superior styles to HTML: CSS has a much wider array of attributes than HTML,
so you can give a far better look to your HTML page in comparison to HTML
attributes.
Offline Browsing: CSS can store web applications locally with the help of offline
cache. Using of this we can view offline websites.
CSS Syntax
A CSS comprises of style rules that are interpreted by the browser and then applied
to the corresponding elements in your document.
A style rule set consists of a selector and declaration block.
5
The selector points to the HTML element you want to style.
The declaration block contains one or more declarations separated by
semicolons.
Each declaration includes a CSS property name and a value, separated by a
colon.
For Example:
A CSS declaration always ends with a semicolon, and declaration blocks are
surrounded by curly braces.
Example:
In the following example all p elements will be center-aligned, with a blue text color:
p{
color: blue;
text-align: center;
}
6
Three kinds of Cascading Style Sheet
I Will Do This
Use your HTML Code Play application to write an HTML code with the same
output/format as below. No specifications required for title, heading size and font face.
Write your code in a separate paper.
7
I Learned This
Fill-in the blanks. Select your answer from the word box.
I Practice This
Practice the following codes using your HTML Code Play and see the output. Identify
what kind of CSS is used.
1. 2.
8
I Apply This
Identify the different parts of a CSS Syntax/Structure and select your answer from the
box below. Write the letter only.
2. 3.
6. 7.
I Test Myself
CSS Debugging. Below is an example of a CSS Code with its output, identify the
error of each line and mark if it is correct and x if it is otherwise.
9
Post Test
REFERENCES
https://www.geeksforgeeks.org/css-introduction/
Web Design by Info Tech Learning Publications, pages 112-119
https://www.w3schools.com/css/
09173003745 / 09479469720
10