Semester
Subject
Year
Tribhuwan University
2082
Bachelor Level / Third Year / Fifth Semester / Science
(Web Technology)
Full Marks: 60
Pass Marks: 24
Time: 3 Hours
Candidates are required to give their answers in their own words as for as practicable.
The figures in the margin indicate full marks.
Long Answers Questions
CSS (Cascading Style Sheets) is a style sheet language used to describe the presentation and formatting of HTML documents, including layout, colors, fonts, and spacing.
CSS separates the content (HTML) from the design (styling), making web pages more attractive and easier to maintain.
CSS Shadow Effects are used to add shadow to text and elements (boxes) on a web page. They create a visual depth and make elements stand out from the background.
CSS provides two main shadow properties:
text-shadow — Adds shadow to text contentbox-shadow — Adds shadow to HTML elements (like div, p, etc.)Syntax:
text-shadow: h-shadow v-shadow color;box-shadow: h-shadow v-shadow color;Where:
<!DOCTYPE html>
<html>
<head>
<title>CSS Shadow Effects</title>
<style>
#div1 {
font-size: 30px;
padding: 20px;
margin: 50px;
box-shadow: 10px 10px blue;
}
#div1 {
text-shadow: 3px 2px green;
}
</style>
</head>
<body>
<div id="div1">
CSIT Exam
</div>
</body>
</html>
| Property | Value | Meaning |
|---|---|---|
text-shadow |
3px 2px green |
3px horizontal, 2px vertical, green color shadow on text |
box-shadow |
10px 10px blue |
10px horizontal, 10px vertical, blue color shadow on div |
CSS shadow effects enhance the visual appearance of web pages by adding depth to both text and box elements. The text-shadow property is used for text and box-shadow is used for block-level elements like div.
Short Answers Questions