0% found this document useful (0 votes)
226 views1 page

Unit 4: Style Sheets

The document discusses various aspects of Cascading Style Sheets (CSS) including: 1) Using CSS to change background colors and images, and manipulate background image repetition; 2) Styling links, tables, and text properties; 3) Explaining CSS positioning and the use of classes and IDs; 4) Tag for internal CSS and property for changing text color; 5) CSS code for hover/active links, list styles, and background images; 6) Applying the same style sheet across webpages; 7) Differences between IDs and classes with examples; 8) Types of CSS with examples.

Uploaded by

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

Unit 4: Style Sheets

The document discusses various aspects of Cascading Style Sheets (CSS) including: 1) Using CSS to change background colors and images, and manipulate background image repetition; 2) Styling links, tables, and text properties; 3) Explaining CSS positioning and the use of classes and IDs; 4) Tag for internal CSS and property for changing text color; 5) CSS code for hover/active links, list styles, and background images; 6) Applying the same style sheet across webpages; 7) Differences between IDs and classes with examples; 8) Types of CSS with examples.

Uploaded by

Krunal Shah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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