Assignment 2 - HTML 2021
Assignment 2 - HTML 2021
Assignment-2
Introduction to HTML
1. What is HTML form? Design a simple HTML form for registration of a student.
2. What the difference is between get & post method? Give the case where we can use this
method.
3. Explain ordered and unordered list with example
4. What do you mean by Metatag? Explain its use with example
5. Write the HTML snippet to show each letter of a word with new color, giving a rainbow
effect
6. Explain the following with example
(i) Unordered lists
(ii) Ordered lists
(iii) Nested lists
(iv) Definition lists
7. What is Metadata? Where it is included in HTML and XHTML? Explain with example
how Metadata is included in a document?
Also show how can following be achieved with the help of Metadata?
(i) Stop the page from being listed.
(ii) Set an expiration date
(iii) Stop the browser from caching a page.
(iv) Give a context for date so that it can take format MM-DD-YYYY and DD-MM-
YYYY
8. Explain the concept of irregularly shaped tables. Write the HTML snippet to get the
following output and properly defined headers.
10. How an inline frame be embedded on a page with graphics and text?
11. Write a form to collect details of a user such as name, address, radio button to
choose subject of book he wants to buy, Dropdown to choose favorite author,
comments for the last book he read. What is the use of <fieldset>?
12. Show the use of the HTML table tag to design the tables with different requirement with
example
13. Differentiate between HTML and XHTML. Write XHTML to generate table having
following structure: