0% found this document useful (0 votes)
102 views4 pages

Grade 5-Module 3-Textbook Exercise

Uploaded by

musfirahtehseen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
102 views4 pages

Grade 5-Module 3-Textbook Exercise

Uploaded by

musfirahtehseen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Answers of textbook exercises

Fill in the Blanks

1. Full form of CSS is C a s c a d i n g style sheet.


2. File extension of CSS is filename . css
3. CSS can be applied in t h r e e different ways.
4. CSS is r eusable.
5. There are t h r e e types of CSS selectors.

State True or False

1. CSS should be always used with HTML. -False


2. Element selector is one of the types of CSS selectors. -True
3. Name selector is one of the types of CSS selectors. -False
4. selector {property: value} is the syntax of CSS. -True
5.Color property is used for adding background colour to an HTML
element - False

Match the Following

1. Id Selector b. #cybersquare

2. Class selector c. .cybersquare


3. Element selector d. p
4. Hexadecimal color code e. #FFA500
5. External CSS a. Style.css

Multiple choice questions

1. The following is not a CSS selector


a. Id selector
b. Class selector
c. Element selector
d. Name selector

2. Following is not a way of applying CSS in HTML.


a. Inline
b. Internal
c. External
d. Cloud

3. The following is the syntax of CSS.


a.selector {property: value}
b.Selector {value: property}
c.property {property: value}
d. None of the above

4. Which of the following are different methods of specifying color in


CSS?
a. color: orange
b. color: #FFA500
c. color: rgb(255, 165, 0)
d. All of the above

5. CSS box model consists of


a. Padding
b. Margin
c. Content
d. All of the above

Answer in one word or one sentence

1. What is the full form of CSS?


Cascading style sheet

2. What is an ID selector in CSS?


The id selector uses the id attribute of an HTML element to select a
specific element.
3. What is a class selector in CSS?
The class selector uses the class attribute of an HTML element to
select a specific element.

4. What is the file extension of CSS?


.css

5. HTML tag for inserting an external css is:


The HTML tag for inserting an external CSS is the <link> tag.

Answer the following

1. Explain CSS and its advantages.


CSS stands for Cascading Style Sheet is a language that helps us to
modify the way an HTML page looks.
● Good control over the presentation.
● Consistency
● Reduces the time spent on maintaining the HTML document.
● Less cluttered.

2. Explain the different features of CSS.


● Separates content from presentation.
● Defines sizes, spacing, fonts, colors, layout, etc.
● Improves content accessibility & flexibility.
● Simple & Reusable

3. Explain the different ways of applying CSS in an HTML file.


1. In-line CSS:Using the style attribute in HTML elements.
2. Internal CSS:Using a <style>element in the <head> section.
3. External CSS:Using an external CSS file.

4. Explain the syntax of CSS with a minimum of two examples.

h1{ Here h1 is the selector to which style


color:red; rules need to be applied.
font-size:16px; The blocks enclosed in braces is the
declaration block which consist of
}
property and a value pair separated by
colon and ends with semicolon.

5. Explain the different types of CSS selectors with examples.

Element selector: t selects HTML elements based on their name.


ID selector:It selects HTML elements with a specific ID attribute.
Class selector: It selects HTML elements with a specific class
attribute.

You might also like