0% found this document useful (0 votes)
45 views6 pages

Web Programming-Unit 2 (QB)

This document is a question bank for a web programming unit focused on HTML5. It includes a variety of questions ranging from basic definitions and syntax to more complex topics such as HTML5 validation and the use of semantic elements. The document is structured into sections for 5 marks, 8 marks, and includes practical coding tasks and explanations.

Uploaded by

keerthanas8739
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)
45 views6 pages

Web Programming-Unit 2 (QB)

This document is a question bank for a web programming unit focused on HTML5. It includes a variety of questions ranging from basic definitions and syntax to more complex topics such as HTML5 validation and the use of semantic elements. The document is structured into sections for 5 marks, 8 marks, and includes practical coding tasks and explanations.

Uploaded by

keerthanas8739
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/ 6

WEB PROGRAMMING

UNIT-2
QUESTION BANK

1. What is HTML5?
2. Mention two features of HTML5.
3. Define semantic elements in HTML5 with examples.
4. What is multimedia support in HTML5?
5. Write the syntax for HTML5 <!DOCTYPE> declaration.
6. What is the purpose of the <html lang="en"> attribute?
7. Why is <meta charset="UTF-8"> used in HTML5?
8. What is the function of <title> tag?
9. Differentiate between HTML and HTML5.
10. What is meant by validating an HTML5 document?
11. How many heading levels are there in HTML?
12. Which tag is used for the largest heading?
13. Can we change the default size of headings? How?
14. Write an example of <h3> heading.
15. Which tag is used for paragraph in HTML?
16. Define hyperlink in HTML.
17. Write the syntax of an anchor (<a>) tag.
18. What is the use of the href attribute?
19. Differentiate between visited and active link colors.
20. What is the use of target="_blank" in links?
21. Write the syntax of <img> tag.
22. What is the purpose of the alt attribute?
23. Define longdesc attribute in <img> tag.
24. What is the difference between src and srcset attributes?
25. What is an image map?
26. How to display © in HTML?
27. Write the entity code for &.
28. What is the purpose of <hr> tag?
29. Write HTML code to display 5 > 3.
30. Write HTML entity for the Euro sign (€).
31. Differentiate between <ul> and <ol>.
32. What tag is used for list item?
33. What is a nested list?
34. Write an example of <dl>, <dt>, and <dd>.
35. What attribute is used to reverse an ordered list?
36. Define <tr> and <td> tags.
37. What is the use of <th> tag?
38. Name any two table grouping elements.
39. What is the difference between colspan and rowspan?
40. Write code for a table with 2 rows and 2 columns.
41. Write the syntax of <form> tag.
42. Mention two form elements.
43. What is the purpose of <label> tag?
44. Differentiate between <textarea> and <input type="text">.
45. What is the use of <fieldset> and <legend>?
46. Write the syntax for input type color.
47. What is the use of datetime-local input type?
48. Define <input type="email"> with example.
49. What is the difference between <input type="number"> and
<input type="range">?
50. Write an example of <input type="file">.
51. What is the use of <datalist> element?
52. Differentiate between <select> and <datalist>.
53. Write an example of <optgroup> tag.
54. What is the role of <output> element?
55. Write the syntax for autocomplete attribute.
56. Write the purpose of <header> and <footer>.
57. Differentiate between <section> and <article>.
58. What is the use of <aside> tag?
59. Write an example of <figure> and <figcaption>.
60. What is the use of <main> tag?

5 Marks

1. Explain the key features of HTML5 with examples.


2. Write HTML5 code for a structured web page using <header>, <nav>,
<main>, and <footer>.
3. What is HTML5 validation? Explain the steps to validate an HTML5
document using W3C Validator.
4. Differentiate between HTML and HTML5 with at least 5 points.
5. Explain semantic elements in HTML5 with suitable examples.
6. Explain the use of heading tags <h1> to <h6> with code examples.
7. Write HTML code to demonstrate different heading sizes using CSS font-
size.
8. Explain the <a> tag and its attributes with examples.
9. Demonstrate the use of the target attribute (_self, _blank, _parent, _top)
with an example.
10. Explain the concept of internal linking in HTML with an example
program.
11. Write HTML code to insert an image with src, alt, width, and
height attributes.
12. Explain <img usemap> with an example of an image map.
13. Write HTML code to set a background image for a web page using
CSS.
14. Differentiate between <picture> and <img> with an example.
15. Write a short note on HTML multimedia elements and file formats.
16. Explain the types of HTML lists with examples.
17. Write HTML code to create a nested ordered and unordered list.
18. Write HTML code for a table with a caption, header, body, and
footer sections.
19. Differentiate between colspan and rowspan with suitable code
examples.
20. Write HTML code to create a table with colored borders, rounded
corners, and padding.
21. Explain the different form elements (<input>, <select>,
<textarea>, <button>) with examples.
22. Write HTML code for a form that collects name, email, and
password, and includes a submit button.
23. Explain <fieldset> and <legend> with an example.
24. Write HTML5 code using <datalist> for browser name
suggestions.
25. Explain <output> tag in forms with an example for addition of two
numbers.
26. Write HTML code using input types: date, time, datetime-local,
week, and month.
27. Write HTML code to demonstrate <input type="email"> and
<input type="url"> validation.
28. Differentiate between <input type="number"> and <input
type="range"> with examples.
29. Explain the purpose of autocomplete attribute in forms with an
example.
30. Write HTML5 code for a registration form using at least 8 input
types (text, password, email, number, date, color, file, submit).

8 Marks

1. Explain the structure of an HTML5 document with an example.


2. Discuss the importance of semantic elements in HTML5. Create a
sample webpage using <header>, <nav>, <section>, <article>, <aside>,
and <footer>.
3. What is HTML5 validation? Write the steps and explain with a
practical example.
4. Compare HTML and HTML5 with suitable examples and list at least 6
differences.
5. Explain the use of headings in structuring a webpage. Create a sample
webpage with all heading levels <h1> to <h6>.
6. Demonstrate internal linking within a webpage using <a href="#id">.
Explain its importance with an example.
7. Write HTML code to illustrate all variations of hyperlink targets (_self,
_blank, _parent, _top).
8. Explain the different attributes of <img> tag with an example. Also,
differentiate between inline images and background images.
9. Write an HTML program to demonstrate <picture> and <map> tags.
Explain how they improve web responsiveness and interactivity.
10. Explain the role of multimedia in HTML5. Write code to embed
an audio file and a video file with controls and attributes.
11. Differentiate between ordered, unordered, and description lists.
Write examples for each.
12. Write HTML code to create a student timetable using <table>
with rowspan, colspan, and styled borders.
13. Discuss the purpose of <thead>, <tbody>, and <tfoot> with a
program.
14. Explain different HTML form controls with examples.
15. Write an HTML5 program to design a login form with validation
using input types: email, password, and submit.
16. Write an HTML form for student registration using <fieldset>,
<legend>, <datalist>, and <optgroup>.
17. Explain HTML5 input types with examples (color, date,
datetime-local, week, month, range).
18. Write HTML code to demonstrate the use of <output> element
with a calculation of sum of two numbers.
19. Explain the use of autocomplete attribute in forms. Write a
program to illustrate it with name, email, and country fields.
20. Discuss the importance of meta tags in HTML5. Write an example
to include description, keywords, author, and viewport meta tags.

You might also like