Web Technology -Module-2
6 Marks Questions
1. Define CSS. List any three advantages of using CSS.
2. Explain how CSS helps to separate structure and design in a webpage.
3. Analyse inline, internal, and external style sheets with syntax.
4. What are CSS selectors? Explain any three types with examples.
5. Write a CSS rule using a class selector to change text property? Apply an ID selector
to style the main heading of a webpage.
6. Write CSS code to display paragraphs in italic with font size 20px.
7. Explain font properties in CSS with examples.
8. Differentiate between <div> and <span> tags with examples.
9. Explain the concept of CSS Box Model with a neat diagram.
10. What is conflict resolution in CSS? Mention precedence order.
11. List and explain any three list properties in CSS.
12. Explain text-align, text-indent, and text-transform with examples.
13. What does the text-align property do in CSS? List the possible values for text-
transform.
14. Write CSS code to centre a heading and indent the first line of a paragraph? Apply
text-transform to make a subheading appear in all uppercase.
15. What is JavaScript? List any four uses of JavaScript.
16. Explain JavaScript primitive data types with examples.
17. Write JavaScript code to display “Welcome to JavaScript” on a webpage.
18. Explain the use of alert(), confirm() and prompt() functions with examples.
19. Differentiate between implicit and explicit type conversion in JavaScript.
8 Marks Questions
1. Illustrate the role of CSS in web page design. Give CSS syntax with an example.
2. Write a note on different CSS selector formats with examples.
3. Explain the different font properties in CSS with examples.
4. Describe alignment of text in CSS with suitable examples.
5. What are background properties in CSS? Explain with examples.
6. Explain the difference between inline CSS and external CSS with examples.
7. Discuss the importance of conflict resolution and cascading in CSS.
8. Write an HTML and CSS code to demonstrate ordered and unordered lists with
relevant styles.
9. Explain object-based nature of JavaScript with an example.
10. Discuss JavaScript variables and literals with examples.
11. Explain different types of operators in JavaScript with examples.
12. Explain the syntax for including JavaScript internally and externally in HTML.
13. Differentiate between JavaScript functions and methods with examples.
14. Write JavaScript code to accept two numbers from the user and display their sum
using prompt() and alert().
10 Marks Questions
1. Explain in detail the different ways of writing CSS with an example HTML code.
2. Discuss any 4 CSS selector types with relevant HTML code for each.
3. Explain CSS Box Model in detail with examples of content, padding, border, and
margin.
4. Write CSS code to design a simple webpage with different font families, font sizes,
and colors.
5. Create an HTML document that uses external CSS to style a webpage describing
INDIA with its important information. The following information like Ratio of male
and female of the state to be displayed. Use appropriate Grid Model
6. Explain text formatting properties in CSS with examples.
7. Write CSS code to demonstrate use of background-color, background-image,
background-repeat, and background-position.
8. What is cascading in CSS? Explain conflict resolution rules with examples.
9. Explain object orientation in JavaScript. How does prototype-based inheritance work?
10. Write short notes on JavaScript objects, properties, and methods.
11. Discuss primitive data types, wrapper objects, and type conversions in JavaScript.
12. Explain JavaScript operators (arithmetic, relational, logical, string, and typeof) with
examples.
13. Write a JavaScript program to calculate the area and perimeter of a rectangle using
variables.
14. Explain JavaScript Date and Math objects with examples.
15. Explain different types of screen output and keyboard input methods in JavaScript.
16. Write an HTML + JavaScript program to accept a user’s name and display a greeting
message.