0% found this document useful (0 votes)
1 views2 pages

Web Programming Assignment-2

This document is an assignment for a Web Programming course at JECRC University, covering various topics in CSS and JavaScript. It includes questions on CSS properties, selectors, transitions, filters, element positioning, and DOM manipulation techniques. The assignment is divided into three sections with varying marks allocated for each question.

Uploaded by

tarunsaro23
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)
1 views2 pages

Web Programming Assignment-2

This document is an assignment for a Web Programming course at JECRC University, covering various topics in CSS and JavaScript. It includes questions on CSS properties, selectors, transitions, filters, element positioning, and DOM manipulation techniques. The assignment is divided into three sections with varying marks allocated for each question.

Uploaded by

tarunsaro23
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/ 2

JECRC UNIVERSITY​

Assignment II

UNIT 2
B.tech-CSE
Semester: II
Subject: Web Programming (BCO565A)

SECTION A ​​ ​ ​ ​ ​ ​ ​ ​ (2 * 5 = 10 Marks)

01.​What is the purpose of the CSS class attribute, and how is it used to style HTML
elements?
02.​Explain the difference between id and class selectors in CSS. When would you use
each?
03.​What is the purpose of the CSS float property, and how does it affect the layout of
elements?
04.​What is the CSS z-index property used for?
05.​What is the difference between padding and margin in the CSS box model?

SECTION B ​​ ​ ​ ​ ​ ​ ​ ​ (7 * 3 = 21 Marks)

01.​Explain the concept of "cascading" in CSS. How do different style rules (e.g., inline,
internal, external) interact and which rules take precedence?

02.​Describe how to use CSS transitions to create simple animations. Explain the different
properties involved (e.g., transition-property, transition-duration,
transition-timing-function) and provide an example.

03.​Explain how to use CSS filters to add visual effects to elements (e.g., blur, grayscale,
brightness). Give two examples and show the CSS code.

SECTION C ​​ ​ ​ ​ ​ ​ ​ ​ (11 * 3 = 33 Marks)

01.​Explain the different ways to position elements using CSS (static, relative, absolute,
fixed). Provide examples of when you would use each positioning method and explain
how they affect the element's placement within the document flow.
JECRC UNIVERSITY​
Assignment II

02.​Discuss how to use JavaScript to manipulate the DOM. Explain how to select elements,
change their content, attributes, and styles. Provide a code example that demonstrates at
least three different DOM manipulation techniques.

03.​Explain how to use JavaScript to respond to events in a web page. Describe the event
model and how event listeners are attached to elements. Provide an example where you
use JavaScript to handle a click event, changing the style of an element when it is clicked.

************* Thank You *************

You might also like