Unit1 - Subjective Questions

INT219 • Practice Questions with Detailed Answers

1

Explain the concept of Semantic HTML. Why is it important in modern web development? Provide three examples of semantic tags introduced in HTML5.

2

Describe the HTML5 Document Structure. Explain the purpose of the <!DOCTYPE html>, <html>, <head>, and <body> tags.

3

Differentiate between the CSS Box Model standard behavior (content-box) and the alternate behavior (border-box). Provide the mathematical formula for calculating the total width of an element in both cases.

4

Explain CSS Specificity and how it determines which styles are applied when multiple rules match an element. How is specificity calculated?

5

Describe the different values of the CSS position property. How do relative, absolute, fixed, and sticky differ?

6

Discuss the CSS Flexbox layout module. Explain the roles of the Main Axis and the Cross Axis.

7

Compare and contrast CSS Grid and Flexbox. When should you use one over the other?

8

What are Form Input Controls in HTML5? List five different types of <input> elements and their specific use cases.

9

Explain the syntax and usage of CSS Media Queries. How are they essential for Responsive Web Design?

10

Describe the implementation of Multimedia Elements in HTML5 using <audio> and <video> tags. Include mention of attributes like controls, autoplay, and source.

11

What are Git and GitHub? Explain the fundamental difference between a local repository and a remote repository.

12

Explain the Git Workflow involving the three states: Working Directory, Staging Area, and Repository.

13

Define CSS Pseudo-classes and Pseudo-elements. Provide examples for each.

14

Explain the Mobile-First Approach in responsive web design. Why is it considered a best practice?

15

Discuss the different types of CSS Combinators. How do Descendant, Child, Adjacent Sibling, and General Sibling combinators differ?

16

Explain the significance of CSS Variables (Custom Properties) in modern CSS workflows. How are they declared and used?

17

What are the essential Git commands required to initialize a repository, save changes, and resolve merge conflicts? List and explain at least 5 commands.

18

Differentiate between Block-level, Inline-level, and Inline-block elements in CSS relative to the display property.

19

Explain the concept of CSS Units. Distinguish between Absolute Units (px) and Relative Units (em, rem, %, vh, vw).

20

Describe Modern CSS Workflows. What is the role of CSS Preprocessors (like SASS/SCSS) and Post-processors in development?