Page 105 - 2611_SmartGPT Pro V(5.0) C-6
P. 105
b. In CSS, a declaration block is a set of one or more declarations enclosed in curly braces.
c. Internal CSS is applied by writing styles inside a separate external file with a .css extension.
d. The TEXT-ALIGN property in CSS is used to change the font size of the text.
e. The MARGIN property in CSS can be used to set the margin for all four sides of an element.
3. Fill in the blanks using the words from the help box.
<STYLE>, <HEAD>, #FFFFFF, Declaration, Property, BORDER-STYLE
a. In CSS, a ___________ is a combination of a property and its value written in the format property:
value;.
b. Internal CSS is written inside the ___________ tag in the ___________ section.
c. The ___________ hexadecimal code represents the white colour in CSS.
d. The ___________ CSS property is used to set the border style for all four sides of an element’s
border.
e. Each ___________ has its own valid set of values.
4. Think and answer.
a. Write an advantage of CSS.
______________________________________________________________________________
______________________________________________________________________________
b. What is a declaration block in CSS?
______________________________________________________________________________
______________________________________________________________________________
c. Name the three main ways to add CSS to a web page.
______________________________________________________________________________
______________________________________________________________________________
d. Explain the BORDER-WIDTH property in CSS and explain its use.
______________________________________________________________________________
______________________________________________________________________________
21 st #Creativity
5. Competency-based/Application-based questions. Century
Skills #Technology Literacy
a. Samantha wants to make the text in her web page italicised using CSS. She uses the code
p {font-style: italicize;} but it doesn’t work. What is wrong with the syntax and how can she
correct it?
b. Shaan wants to apply uniform spacing around all the paragraphs on his web page. Which CSS
property should he use to achieve this?
CSS3—Styling Basics 103

