Unit 1: HTML Fundamentals - Subjective Questions

CSE326 — Internet Programming • Practice Questions with Detailed Answers

20 questions

1

Define the Internet and the World Wide Web. Explain how they differ from each other.

2

Explain the roles of URL, DNS, HTTP/HTTPS, web browsers, and web servers in accessing a website.

3

Describe client-server architecture and explain the complete request-response cycle for loading a web page.

4

What is HTML5? Discuss its important features and advantages over earlier versions of HTML.

5

Describe the basic structure of an HTML5 document and state the purpose of each major part.

6

Explain HTML elements and attributes. Distinguish between container elements, void elements, block-level elements, and inline elements with examples.

7

Compare semantic and non-semantic HTML elements. Explain how semantic HTML benefits accessibility, SEO, and maintainability.

8

Describe the HTML elements used for headings, paragraphs, line breaks, quotations, preformatted text, and text emphasis. Differentiate <strong> from <b> and <em> from <i>.

9

Explain ordered lists, unordered lists, and description lists in HTML. Show how nested lists can be created.

10

Explain how hyperlinks are created in HTML. Discuss absolute URLs, relative URLs, fragment links, email links, and important anchor attributes.

11

Describe how images are embedded in HTML. Explain the purpose of src, alt, width, height, srcset, <picture>, <figure>, and <figcaption>.

12

What is SVG? Explain how SVG graphics are created in HTML and compare SVG with raster images.

13

Explain the HTML5 <audio> element and describe how fallback content, multiple sources, and accessibility considerations are handled.

14

Explain the HTML5 <video> element. Discuss its major attributes, multiple source formats, captions, poster images, and fallback content.

15

What is an iframe? Explain its common uses, important attributes, security risks, and recommended practices.

16

Define Search Engine Optimization and explain the important on-page SEO practices related to HTML.

17

Explain the purpose of important metadata placed in the HTML <head>, including character encoding, viewport settings, description, canonical links, robots directives, and social metadata.

18

Discuss HTML accessibility best practices for document language, headings, landmarks, images, links, forms, tables, and multimedia.

19

Describe the major HTML coding and validation best practices that improve readability, compatibility, accessibility, performance, and maintainability.

20

Design the HTML structure of a small SEO-friendly and accessible article page containing navigation, formatted text, a list, a hyperlink, a responsive image, an SVG icon, video, and a footer. Explain the design decisions.