You are on page 1of 1

UNIT 4: STYLE SHEETS

1. Define CSS. Enlist and explain methods of using CSS in web page. Write HTML
snipped with CSS to
1. Change background color of webpage
2. Set an image as a background
3. Manipulate a background image so it can be repeated over an area.
2. Write an HTML snippet with CSS for following effects
1. link: after visited red color and before visited blue color
2. table with odd rows pink and even rows blue color.
3. Text color-green, Text-indentation-2cm, Text case-uppercase
3. What is positioning in CSS? Explain it with example.
4. What do you mean by class and id in CSS explain with example? Show the use of
external CSS with example.
5. Which HTML tag is used to define an internal style sheet?
6. Which CSS property is used to change the text color of an element?
7. Write CSS code for the following:
i) set the background color for the hover and active link states to "yellow".
ii) Set the list style for unordered lists to "square".
iii) Set "paper.gif" as the background image of the page.
8. Explain how to use the same style sheets for different webpages.
9. Differentiate between “ID” and “Class” using suitable example.
10. List and Explain types of CSS with Example.

**********

You might also like