Create a HTML form with fields like username, password, email, country. The username should be textbox, password and email should be the password and email fields. The country should be drop down. Now write JavaScript function for form validation. Your function should validate the username to be of length 5, password should start with digit and should be alphanumeric. The email should be valid. The country field should be selected. [10]
2.
How array is defined in JavaScript? Illustrate with example. [5]
3.
What is cookie? Write a JavaScript code to create cookie object. [5]
Introduction
1.
Describe the client server architecture and its types. [5]
Markup Language
1.
Write HTML script to generate following output. Create a table like below. Set link to www.facebook.com in the text "Null". The title of your HTML page should be "Test". The table should be in a div having id dv1. (explanation: The below table is about the use of rows and columns, use of rows , use of subscript and supescript)
[10]
2.
Write HTML script to show the use of Video and Canvas elements. [5]
Style Sheets
1.
What is the use of CSS? Describe various methods of inserting CSS in HTML. Give proper examples. [10]
2.
Describe the relative, float and absolute positioning with suitable examples. [5]
3.
Consider a HTML page contains two divisions and one paragraph tags. The divisions have id div1 and div2 respectively. The color of text in both of divisions should be red and background color of divisions should be green. The font style in paragraph should be Arial and the size of font should be 14. Write necessary CSS for the given scenario. [5]
XML
1.
What is the use of XML? Discuss the XML elements. [5]
2.
What is DTD? How can you use CDATA and PCDATA in DTD? [5]